This commit is contained in:
xl
2024-11-18 14:34:42 +08:00
parent 125dd9e5b2
commit 2be7134ea6
+5 -1
View File
@@ -77,7 +77,11 @@ class HotReload extends AbstractProcess
$this->addListen();
Event::add($this->pipe, function () use ($process) {
var_dump(func_get_args());
$read = inotify_read($this->pipe);
var_dump($read);
$this->reload();
});
Event::cycle(function (): void {
if ($this->isStop()) {