This commit is contained in:
2023-07-26 17:45:07 +08:00
parent 6d04611bb5
commit 4a667a7596
+1 -2
View File
@@ -28,7 +28,7 @@ class HotReload extends BaseProcess
private array $dirs = [APP_PATH . 'app', APP_PATH . 'routes'];
protected mixed $inotify;
protected mixed $inotify = null;
/**
@@ -50,7 +50,6 @@ class HotReload extends BaseProcess
Coroutine::create(fn() => $this->onShutdown(Coroutine::waitSignal(SIGTERM | SIGINT)));
} else {
pcntl_signal(SIGTERM, [$this, 'onStop']);
// pcntl_signal(SIGINT, [$this, 'onStop']);
}
return $this;
}