Skip to content

Commit

Permalink
bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
kcloze committed Jan 9, 2018
1 parent b629376 commit e6e64a7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Console.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,10 @@ public function sendSignal($signal=SIGUSR1)
if (@\Swoole\Process::kill($pid, $signal)) {
$this->logger->log('[master pid: ' . $pid . '] has been received signal' . $signal);
sleep(1);
$statusStr=file_get_contents($pidStatusFile);
//如果是SIGUSR2信号,显示swoole-jobs状态信息
if (SIGUSR2 == $signal) {
$statusStr=file_get_contents($pidStatusFile);

echo $statusStr ? $statusStr : 'sorry,show status fail.';
exit;
}
Expand Down

0 comments on commit e6e64a7

Please sign in to comment.