diff --git a/kiri-engine/FileListen/FileChangeCustomProcess.php b/kiri-engine/FileListen/FileChangeCustomProcess.php index 99fa9764..272d4394 100644 --- a/kiri-engine/FileListen/FileChangeCustomProcess.php +++ b/kiri-engine/FileListen/FileChangeCustomProcess.php @@ -57,7 +57,7 @@ class FileChangeCustomProcess extends Command public function execute(InputInterface $input, OutputInterface $output): int { // TODO: Implement onHandler() method. - set_error_handler([$this, 'onErrorHandler']); +// set_error_handler([$this, 'onErrorHandler']); $this->dirs = Config::get('inotify', [APP_PATH . 'app']); if (!extension_loaded('inotify')) { @@ -105,6 +105,7 @@ class FileChangeCustomProcess extends Command { Kiri::getDi()->get(Logger::class)->warning('change reload'); + $content = (int)file_get_contents(storage('.swoole.pid')); if (!empty($content)) { var_dump($content, Process::kill($content, 0));