From 8add22f589cfe787aa17309f3e950587b3e6665f Mon Sep 17 00:00:00 2001 From: Administrator Date: Thu, 4 Nov 2021 23:44:47 +0800 Subject: [PATCH] 111 --- kiri-engine/FileListen/FileChangeCustomProcess.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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));