Skip to content

Commit

Permalink
Merge pull request #16746 from halaei/kill
Browse files Browse the repository at this point in the history
[5.3] kill timedout process
  • Loading branch information
taylorotwell authored Dec 11, 2016
2 parents afccec3 + cd87eff commit ba6bd9e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Illuminate/Queue/Worker.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,10 @@ protected function registerTimeoutHandler(WorkerOptions $options)
pcntl_async_signals(true);

pcntl_signal(SIGALRM, function () {
if (extension_loaded('posix')) {
posix_kill(getmypid(), SIGKILL);
}

exit(1);
});

Expand Down

0 comments on commit ba6bd9e

Please sign in to comment.