From 0bcdce1112dacb66eebe929e38fc7ad7c1353512 Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Sun, 28 Mar 2021 16:29:41 +0800 Subject: [PATCH] modify --- HttpServer/Shutdown.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/HttpServer/Shutdown.php b/HttpServer/Shutdown.php index 9f9a66b9..b6608d39 100644 --- a/HttpServer/Shutdown.php +++ b/HttpServer/Shutdown.php @@ -86,8 +86,7 @@ class Shutdown extends Component } $shell = 'ps -eo pid,cmd,state | grep %d | grep -v grep'; exec(sprintf($shell, $content), $output, $code); - var_dump(sprintf($shell, $content), $output, $code); - if (empty($content)) { + if (empty($output)) { return false; } return true;