Skip to content

Commit 586c428

Browse files
Marick van TuilMarick van Tuil
Marick van Tuil
authored and
Marick van Tuil
committed
Implement sigkill signal
1 parent 828880c commit 586c428

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Worker.php

+4
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ public function kill($status = 0, $options = null): void
5252
// So, to still test that the application has exited, we will simply rely on the
5353
// WorkerStopped event that is fired when the worker is stopped.
5454
if (! app()->runningUnitTests()) {
55+
if (extension_loaded('posix') && extension_loaded('pcntl')) {
56+
posix_kill(getmypid(), SIGKILL);
57+
}
58+
5559
exit($status);
5660
}
5761

0 commit comments

Comments
 (0)