This commit is contained in:
2021-11-05 00:36:34 +08:00
parent ea8d4d9611
commit ad568fa3a7
@@ -97,7 +97,7 @@ class FileChangeCustomProcess extends Command
$content = (int)file_get_contents(storage('.swoole.pid'));
if (!empty($content) && Process::kill($content, 0)) {
Process::kill($content, SIGTERM);
proc_open("php " . APP_PATH . "kiri.php sw:server stop", [], $pipes);
}
Coroutine::create(function () {
if (!$this->channel) {