This commit is contained in:
2021-11-19 04:08:16 +08:00
parent 9ec6573ca4
commit c5c1d991f2
+2 -1
View File
@@ -99,12 +99,13 @@ class HotReload extends Command
$this->driver->clear();
$pid = file_get_contents(storage('.swoole.pid'));
if (!empty($pid) && Process::kill($pid, 0)) {
Process::kill($pid, SIGTERM);
while (Process::kill($pid, 0)) {
var_dump($pid);
sleep(1);
Process::kill($pid, SIGTERM);
}
}
$this->stop();
$this->logger->notice('over');
}