This commit is contained in:
2021-11-18 16:38:55 +08:00
parent 78fdc7c1ca
commit a040099b99
+1 -1
View File
@@ -115,8 +115,8 @@ class HotReload extends Command
{
Kiri::getDi()->get(Logger::class)->warning('change reload');
Coroutine::create(function () {
$source = proc_open("php " . APP_PATH . "kiri.php start", [], $pipes);
$pid = file_get_contents(storage('.swoole.pid'));
$source = proc_open("php " . APP_PATH . "kiri.php start", [], $pipes);
if (!empty($pid)) {
Process::kill($pid, SIGTERM);
}