Skip to content

Commit

Permalink
Queue worker daemon should also listen for SIGQUIT (laravel#43607)
Browse files Browse the repository at this point in the history
  • Loading branch information
LachlanArthur authored and chu121su12 committed Aug 10, 2022
1 parent 2dce6d0 commit 8180ae5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Illuminate/Queue/Worker.php
Expand Up @@ -710,6 +710,10 @@ protected function listenForSignals()
{
pcntl_async_signals(true);

pcntl_signal(SIGQUIT, function () {
$this->shouldQuit = true;
});

pcntl_signal(SIGTERM, function () {
$this->shouldQuit = true;
});
Expand Down

0 comments on commit 8180ae5

Please sign in to comment.