diff --git a/HttpServer/Shutdown.php b/HttpServer/Shutdown.php index cfcf3c55..c736607e 100644 --- a/HttpServer/Shutdown.php +++ b/HttpServer/Shutdown.php @@ -127,9 +127,7 @@ class Shutdown extends Component */ public function close(string $value) { - $resource = fopen($value, 'r'); - $content = fgets($resource); - fclose($resource); + $content = file_get_contents($value); while ($this->pidIsExists($content)) { // exec('kill -15 ' . $content);