Skip to content

Commit

Permalink
Queue worker daemon should also listen for SIGQUIT (#43607)
Browse files Browse the repository at this point in the history
  • Loading branch information
LachlanArthur committed Aug 9, 2022
1 parent 083cefc commit 14cd42d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Illuminate/Queue/Worker.php
Expand Up @@ -680,6 +680,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 14cd42d

Please sign in to comment.