From 21d3738125196ad741e976c4a51dd716191dfec3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Thu, 4 Nov 2021 18:06:45 +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 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kiri-engine/FileListen/FileChangeCustomProcess.php b/kiri-engine/FileListen/FileChangeCustomProcess.php index 3c4ffba1..93489c77 100644 --- a/kiri-engine/FileListen/FileChangeCustomProcess.php +++ b/kiri-engine/FileListen/FileChangeCustomProcess.php @@ -117,7 +117,9 @@ class FileChangeCustomProcess extends Command foreach ($this->pipes as $pipe) { fclose($pipe); } - proc_close($this->source); + if (is_resource($this->source)) { + proc_close($this->source); + } } }