This commit is contained in:
as2252258@163.com
2021-02-27 03:58:53 +08:00
parent 8cf938a439
commit f4e4364cf2
+2 -2
View File
@@ -69,11 +69,11 @@ class OnWorkerStart extends Callback
var_dump($sigkill);
if ($sigkill !== false) {
while (Snowflake::app()->isRun()) {
Coroutine::sleep(1);
Coroutine::sleep(0.01);
}
}
go(function () use ($server) {
Coroutine::waitPid($server->worker_pid);
var_dump(Coroutine::waitPid($server->worker_pid));
});
$server->stop($workerId);;
} catch (\Throwable $exception) {