改名
This commit is contained in:
@@ -60,9 +60,6 @@ class FileChangeCustomProcess extends Command
|
||||
$driver = Kiri::getDi()->get(Inotify::class, [$this->dirs, $this]);
|
||||
}
|
||||
$make = Barrier::make();
|
||||
go(function () {
|
||||
$this->trigger_reload();
|
||||
});
|
||||
go(function () {
|
||||
$sign = Coroutine::waitSignal(SIGTERM, -1);
|
||||
if ($sign) {
|
||||
@@ -72,6 +69,9 @@ class FileChangeCustomProcess extends Command
|
||||
go(function () use ($driver) {
|
||||
$driver->start();
|
||||
});
|
||||
go(function () {
|
||||
proc_open("php " . APP_PATH . "kiri.php sw:server start", [], $pipes);
|
||||
});
|
||||
Barrier::wait($make);
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user