From cd97e1e8ec299cda248ae0bd85ca1454bd6ae24f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Mon, 29 Mar 2021 10:58:55 +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 --- HttpServer/Shutdown.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HttpServer/Shutdown.php b/HttpServer/Shutdown.php index 9ed07640..031023c7 100644 --- a/HttpServer/Shutdown.php +++ b/HttpServer/Shutdown.php @@ -91,7 +91,7 @@ class Shutdown extends Component if (intval($content) < 1) { return false; } - $shell = 'ps -eo pid,cmd,state | grep %d | grep -v grep'; + $shell = 'ps -eo pid,state | grep %d | grep -v grep'; exec(sprintf($shell, intval($content)), $output, $code); var_dump(sprintf($shell, intval($content))); if (empty($output)) {