改名
This commit is contained in:
@@ -128,14 +128,13 @@ class Shutdown extends Component
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $value
|
* @param string $value
|
||||||
* @throws ConfigException
|
|
||||||
*/
|
*/
|
||||||
public function close(string $value)
|
public function close(string $value)
|
||||||
{
|
{
|
||||||
$content = file_get_contents($value);
|
$content = file_get_contents($value);
|
||||||
|
|
||||||
while ($this->pidIsExists($content)) {
|
while ($this->pidIsExists($content)) {
|
||||||
// exec('kill -15 ' . $content);
|
exec('kill -15 ' . $content);
|
||||||
sleep(1);
|
sleep(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user