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)) { if (!empty($output)) {
exec("kill -15 $content"); exec("kill -15 $content");
} }
unset($content);
$this->close($server); $this->close($server);
} }
@@ -90,7 +91,7 @@ trait Action
if (!$this->masterIdCheck()) { if (!$this->masterIdCheck()) {
break; break;
} }
usleep(100); sleep(1);
} }
echo PHP_EOL; echo PHP_EOL;
} }
@@ -107,6 +108,8 @@ trait Action
return false; return false;
} }
foreach ($files as $file) { foreach ($files as $file) {
clearstatcache(true, $file->getFilename());
$content = file_get_contents($file->getRealPath()); $content = file_get_contents($file->getRealPath());
exec("ps -ax | awk '{ print $1 }' | grep -e '^{$content}$'", $output); exec("ps -ax | awk '{ print $1 }' | grep -e '^{$content}$'", $output);
if (count($output) > 0) { if (count($output) > 0) {
-1
View File
@@ -159,7 +159,6 @@ class Server extends HttpService
* @param $host * @param $host
* @param $Port * @param $Port
* @return Packet|Websocket|Receive|Http|null * @return Packet|Websocket|Receive|Http|null
* @throws ComponentException
* @throws Exception * @throws Exception
*/ */
public function error_stop($host, $Port): Packet|Websocket|Receive|Http|null public function error_stop($host, $Port): Packet|Websocket|Receive|Http|null