From 876dc960b212a5e96219be22de8ecd6ecfb1acc1 Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Sun, 28 Mar 2021 16:24:59 +0800 Subject: [PATCH] modify --- HttpServer/Shutdown.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/HttpServer/Shutdown.php b/HttpServer/Shutdown.php index ff780d11..ffb17ae5 100644 --- a/HttpServer/Shutdown.php +++ b/HttpServer/Shutdown.php @@ -77,8 +77,8 @@ class Shutdown extends Component public function pidIsExists($content): bool { $shell = 'ps -eo pid,cmd,state | grep %d | grep -v grep'; - exec(sprintf($shell, $content), $content, $code); - var_dump(sprintf($shell, $content), $content, $code); + exec(sprintf($shell, $content), $output, $code); + var_dump(sprintf($shell, $content), $output, $code); if (empty($content)) { return false; } @@ -117,7 +117,7 @@ class Shutdown extends Component fclose($resource); while ($this->pidIsExists($content)) { - exec('kill -15 ' . $content); +// exec('kill -15 ' . $content); sleep(1); }