111
This commit is contained in:
@@ -101,12 +101,9 @@ class FileChangeCustomProcess extends Command
|
|||||||
Kiri::getDi()->get(Logger::class)->warning('change reload');
|
Kiri::getDi()->get(Logger::class)->warning('change reload');
|
||||||
|
|
||||||
$content = (int)file_get_contents(storage('.swoole.pid'));
|
$content = (int)file_get_contents(storage('.swoole.pid'));
|
||||||
if (!empty($content)) {
|
if (!empty($content) && Process::kill($content, 0)) {
|
||||||
var_dump($content, Process::kill($content, 0));
|
|
||||||
if (Process::kill($content, 0)) {
|
|
||||||
Process::kill($content, SIGTERM);
|
Process::kill($content, SIGTERM);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
proc_open("php " . APP_PATH . "kiri.php", [], $pipes);
|
proc_open("php " . APP_PATH . "kiri.php", [], $pipes);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user