This commit is contained in:
xl
2024-09-04 10:25:34 +08:00
parent 133c05be44
commit 97d11abd4e
+4
View File
@@ -156,6 +156,10 @@ class HotReload extends AbstractProcess
return;
}
if ($this->isStop()) {
return;
}
$pid = (int)file_get_contents(storage('.swoole.pid'));
if ($pid <= 0 || !Process::kill($pid, 0) || $this->isStop()) {
return;