This commit is contained in:
2021-11-19 10:54:30 +08:00
parent 340e0f1686
commit e3527752a7
+3
View File
@@ -101,6 +101,9 @@ class HotReload extends Command
if (!empty($pid) && Process::kill($pid, 0)) {
Process::kill($pid, SIGTERM);
}
if ($this->process && Process::kill($this->process->pid, 0)) {
Process::kill($this->process->pid, 15);
}
while ($ret = Process::wait(true)) {
echo "PID={$ret['pid']}\n";
sleep(1);