modify
This commit is contained in:
@@ -38,7 +38,6 @@ class Shutdown extends Component
|
|||||||
{
|
{
|
||||||
clearstatcache(storage());
|
clearstatcache(storage());
|
||||||
$master_pid = Server()->setting['pid_file'] ?? PID_PATH;
|
$master_pid = Server()->setting['pid_file'] ?? PID_PATH;
|
||||||
var_dump($master_pid);
|
|
||||||
if (file_exists($master_pid)) {
|
if (file_exists($master_pid)) {
|
||||||
$this->close($master_pid);
|
$this->close($master_pid);
|
||||||
}
|
}
|
||||||
@@ -125,7 +124,7 @@ class Shutdown extends Component
|
|||||||
fclose($resource);
|
fclose($resource);
|
||||||
|
|
||||||
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