This commit is contained in:
2021-11-19 02:50:39 +08:00
parent 873da66a90
commit 841a6b4a19
+1
View File
@@ -73,6 +73,7 @@ class HotReload extends Command
}
$this->trigger_reload();
pcntl_signal(SIGTERM | SIGKILL, function ($data) {
var_dump($data);
$pid = file_get_contents(storage('.swoole.pid'));
if (!empty($pid) && Process::kill($pid, 0)) {
Process::kill($pid, SIGTERM);