This commit is contained in:
2021-08-06 17:12:36 +08:00
parent efd2122038
commit 2d2866d9ed
+2 -4
View File
@@ -302,11 +302,9 @@ class ServerManager extends Abstracts\Server
if (!($pid = $this->portIsAlready($port))) { if (!($pid = $this->portIsAlready($port))) {
return; return;
} }
exec('kill -15 ' . $pid, $execResult);
while ($this->portIsAlready($port)) { while ($this->portIsAlready($port)) {
usleep(100); exec('kill ' . $pid, $execResult);
exec('kill -15 ' . $pid, $execResult); usleep(300);
} }
} }