This commit is contained in:
2021-03-29 12:15:21 +08:00
parent a3364a54e4
commit b955b69caa
+1 -2
View File
@@ -128,14 +128,13 @@ class Shutdown extends Component
/**
* @param string $value
* @throws ConfigException
*/
public function close(string $value)
{
$content = file_get_contents($value);
while ($this->pidIsExists($content)) {
// exec('kill -15 ' . $content);
exec('kill -15 ' . $content);
sleep(1);
}