Skip to content

Commit

Permalink
Handle SIGSEGV
Browse files Browse the repository at this point in the history
  • Loading branch information
Marick van Tuil authored and Marick van Tuil committed Dec 25, 2024
1 parent 586c428 commit 62c3f40
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Worker.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ public function process($connectionName, $job, WorkerOptions $options): void
if ($this->supportsAsyncSignals()) {
$this->listenForSignals();

pcntl_signal(SIGSEGV, fn () => $this->shouldQuit = true);

$this->registerTimeoutHandler($job, $options);
}

Expand Down

0 comments on commit 62c3f40

Please sign in to comment.