改名
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user