From ee380aa520ae65a37c4e751dada23c8cbaf92320 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Thu, 4 Nov 2021 18:57:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kiri-engine/FileListen/FileChangeCustomProcess.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/kiri-engine/FileListen/FileChangeCustomProcess.php b/kiri-engine/FileListen/FileChangeCustomProcess.php index 4c8f97ec..0df31c36 100644 --- a/kiri-engine/FileListen/FileChangeCustomProcess.php +++ b/kiri-engine/FileListen/FileChangeCustomProcess.php @@ -107,9 +107,8 @@ class FileChangeCustomProcess extends Command $content = file_get_contents(storage('.swoole.pid')); if (!empty($content)) { - if (Process::kill((int) $content, 0)) { - Process::kill((int) $content, SIGTERM); - } + var_dump($content); + Process::kill((int)$content, SIGTERM); } proc_open("php " . APP_PATH . "kiri.php", [], $pipes); }