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)
{
$resource = fopen($value, 'r');
$content = fgets($resource);
fclose($resource);
$content = file_get_contents($value);
while ($this->pidIsExists($content)) {
// exec('kill -15 ' . $content);