This commit is contained in:
2021-11-30 18:30:15 +08:00
parent ad0154d319
commit ea425bb82d
+1 -1
View File
@@ -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)) {