Skip to content

Commit

Permalink
Use proper signal.
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Jan 30, 2017
1 parent b38ba01 commit 819888c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Queue/Worker.php
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ protected function listenForSignals()
if ($this->supportsAsyncSignals()) {
pcntl_async_signals(true);

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

Expand Down

1 comment on commit 819888c

@fedeisas
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@taylorotwell why SIGTERM and not SIGINT?

Please sign in to comment.