Skip to content

Commit

Permalink
Remove pointless sleeps
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott Jackson committed Oct 2, 2017
1 parent 66069f7 commit fb50dc0
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions bin/resque
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,6 @@ if($count > 1) {
'monitor' => getmypid()
));
}
sleep(1);

foreach ($children as $k => $v){
$logger->log(Psr\Log\LogLevel::DEBUG, 'Sending signal {signal} to pid {pid}', array(
Expand All @@ -185,7 +184,6 @@ if($count > 1) {
));
posix_kill($k, $GLOBALS['send_signal']);
}
sleep(1);

$logger->log(Psr\Log\LogLevel::NOTICE, 'Propagated signal {signal} to children (kill = {kill})', array(
'signal' => $killSignal,
Expand Down

0 comments on commit fb50dc0

Please sign in to comment.