This commit is contained in:
2021-03-29 10:52:46 +08:00
parent ae22c5486e
commit 681f1eb181
+1 -3
View File
@@ -127,9 +127,7 @@ class Shutdown extends Component
*/ */
public function close(string $value) public function close(string $value)
{ {
$resource = fopen($value, 'r'); $content = file_get_contents($value);
$content = fgets($resource);
fclose($resource);
while ($this->pidIsExists($content)) { while ($this->pidIsExists($content)) {
// exec('kill -15 ' . $content); // exec('kill -15 ' . $content);