debug
This commit is contained in:
@@ -336,7 +336,12 @@ class ServerManage
|
||||
private function cleanupPidFile(): void
|
||||
{
|
||||
$strPidFile = (string) ($this->arrDynamicConfig['service']['pid_file'] ?? '');
|
||||
if ($strPidFile !== '' && is_file($strPidFile)) {
|
||||
if ($strPidFile === '' || !is_file($strPidFile)) {
|
||||
return;
|
||||
}
|
||||
|
||||
$intPid = (int) trim((string) @file_get_contents($strPidFile));
|
||||
if ($intPid === posix_getpid()) {
|
||||
@unlink($strPidFile);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user