modify
This commit is contained in:
@@ -69,11 +69,11 @@ class OnWorkerStart extends Callback
|
|||||||
var_dump($sigkill);
|
var_dump($sigkill);
|
||||||
if ($sigkill !== false) {
|
if ($sigkill !== false) {
|
||||||
while (Snowflake::app()->isRun()) {
|
while (Snowflake::app()->isRun()) {
|
||||||
Coroutine::sleep(1);
|
Coroutine::sleep(0.01);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
go(function () use ($server) {
|
go(function () use ($server) {
|
||||||
Coroutine::waitPid($server->worker_pid);
|
var_dump(Coroutine::waitPid($server->worker_pid));
|
||||||
});
|
});
|
||||||
$server->stop($workerId);;
|
$server->stop($workerId);;
|
||||||
} catch (\Throwable $exception) {
|
} catch (\Throwable $exception) {
|
||||||
|
|||||||
Reference in New Issue
Block a user