Skip to content

Commit 62c3f40

Browse files
Marick van TuilMarick van Tuil
Marick van Tuil
authored and
Marick van Tuil
committed
Handle SIGSEGV
1 parent 586c428 commit 62c3f40

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Worker.php

+2
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ public function process($connectionName, $job, WorkerOptions $options): void
3030
if ($this->supportsAsyncSignals()) {
3131
$this->listenForSignals();
3232

33+
pcntl_signal(SIGSEGV, fn () => $this->shouldQuit = true);
34+
3335
$this->registerTimeoutHandler($job, $options);
3436
}
3537

0 commit comments

Comments
 (0)