改名
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user