Skip to content

Commit

Permalink
log event-loop exited message
Browse files Browse the repository at this point in the history
  • Loading branch information
walkor authored Feb 9, 2017
1 parent 7f034df commit 72aa0aa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Worker.php
Original file line number Diff line number Diff line change
Expand Up @@ -934,6 +934,8 @@ protected static function forkOneWorker($worker)
$worker->setUserAndGroup();
$worker->id = $id;
$worker->run();
$err = new Exception('event-loop exited');
self::log($err);
exit(250);
} else {
throw new Exception("forkOneWorker fail");
Expand Down

0 comments on commit 72aa0aa

Please sign in to comment.