This commit is contained in:
2021-11-05 14:35:16 +08:00
parent 975f6f85a2
commit 93bd3d3f69
@@ -69,13 +69,13 @@ class FileChangeCustomProcess extends Command
$this->trigger_reload(); $this->trigger_reload();
Coroutine::create(function () use ($driver) { Coroutine::create(function () use ($driver) {
Coroutine::create(function () use ($driver) { // Coroutine::create(function () use ($driver) {
$waite = Coroutine::waitSignal(SIGTERM | SIGKILL); // $waite = Coroutine::waitSignal(SIGTERM | SIGKILL);
if ($waite) { // if ($waite) {
$driver->clear(); // $driver->clear();
$this->stop($driver); // $this->stop($driver);
} // }
}); // });
$driver->start(); $driver->start();
}); });
return 0; return 0;