From 722e30248456280c78afc8312bbe12a396034a6e Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Sun, 28 Mar 2021 16:27:54 +0800 Subject: [PATCH] modify --- HttpServer/Shutdown.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/HttpServer/Shutdown.php b/HttpServer/Shutdown.php index 1383eef9..3f1dbe52 100644 --- a/HttpServer/Shutdown.php +++ b/HttpServer/Shutdown.php @@ -67,6 +67,10 @@ class Shutdown extends Component { $master_pid = Server()->setting['pid_file'] ?? PID_PATH; + if (!file_exists($master_pid)) { + return false; + } + return $this->pidIsExists($master_pid); }