This commit is contained in:
2021-03-09 19:47:48 +08:00
parent 4b614ef26d
commit 356148f76e
2 changed files with 4 additions and 2 deletions
+4 -1
View File
@@ -60,6 +60,7 @@ trait Action
if (!empty($output)) {
exec("kill -15 $content");
}
unset($content);
$this->close($server);
}
@@ -90,7 +91,7 @@ trait Action
if (!$this->masterIdCheck()) {
break;
}
usleep(100);
sleep(1);
}
echo PHP_EOL;
}
@@ -107,6 +108,8 @@ trait Action
return false;
}
foreach ($files as $file) {
clearstatcache(true, $file->getFilename());
$content = file_get_contents($file->getRealPath());
exec("ps -ax | awk '{ print $1 }' | grep -e '^{$content}$'", $output);
if (count($output) > 0) {