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();
Coroutine::create(function () use ($driver) {
Coroutine::create(function () use ($driver) {
$waite = Coroutine::waitSignal(SIGTERM | SIGKILL);
if ($waite) {
$driver->clear();
$this->stop($driver);
}
});
// Coroutine::create(function () use ($driver) {
// $waite = Coroutine::waitSignal(SIGTERM | SIGKILL);
// if ($waite) {
// $driver->clear();
// $this->stop($driver);
// }
// });
$driver->start();
});
return 0;