This commit is contained in:
2021-03-02 10:26:25 +08:00
parent 748691ed4b
commit c079cd52e6
-4
View File
@@ -45,10 +45,6 @@ class OnWorkerStart extends Callback
}
$this->debug(sprintf('%s #%d Pid:%d start.', ucfirst(env('environmental')), $worker_id, $server->worker_pid));
Coroutine\go([$this, 'onSignal'], $server, $worker_id);
Coroutine\go(function (Server $server) {
$result = Coroutine::waitPid($server->worker_pid, -1);
var_dump($result);
}, $server);
}