We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 828880c commit 586c428Copy full SHA for 586c428
src/Worker.php
@@ -52,6 +52,10 @@ public function kill($status = 0, $options = null): void
52
// So, to still test that the application has exited, we will simply rely on the
53
// WorkerStopped event that is fired when the worker is stopped.
54
if (! app()->runningUnitTests()) {
55
+ if (extension_loaded('posix') && extension_loaded('pcntl')) {
56
+ posix_kill(getmypid(), SIGKILL);
57
+ }
58
+
59
exit($status);
60
}
61
0 commit comments