改名
This commit is contained in:
@@ -97,7 +97,7 @@ class HotReload extends Command
|
||||
*/
|
||||
public function healthCheck()
|
||||
{
|
||||
$pid = file_get_contents(storage('.swoole.pid'));
|
||||
$pid = (int)file_get_contents(storage('.swoole.pid'));
|
||||
$this->logger->debug('timer ticker.' . Process::kill($pid, 0));
|
||||
if (!empty($pid) && !Process::kill($pid, 0)) {
|
||||
if ($this->process && Process::kill($this->process->pid, 0)) {
|
||||
|
||||
Reference in New Issue
Block a user