From ae22c5486eea82622a9e6b8d1e53b2a87f20d634 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Mon, 29 Mar 2021 10:50: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 --- HttpServer/Shutdown.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/HttpServer/Shutdown.php b/HttpServer/Shutdown.php index 7c6d7f59..cfcf3c55 100644 --- a/HttpServer/Shutdown.php +++ b/HttpServer/Shutdown.php @@ -93,6 +93,7 @@ class Shutdown extends Component } $shell = 'ps -eo pid,cmd,state | grep %d | grep -v grep'; exec(sprintf($shell, intval($content)), $output, $code); + var_dump(sprintf($shell, intval($content))); if (empty($output)) { return false; } @@ -131,7 +132,7 @@ class Shutdown extends Component fclose($resource); while ($this->pidIsExists($content)) { - exec('kill -15 ' . $content); +// exec('kill -15 ' . $content); sleep(1); }