modify
This commit is contained in:
@@ -62,7 +62,7 @@ class OnWorkerStart extends Callback
|
|||||||
{
|
{
|
||||||
go(function () use ($server, $workerId) {
|
go(function () use ($server, $workerId) {
|
||||||
try {
|
try {
|
||||||
$sigkill = Coroutine::waitSignal(SIGKILL | SIGUSR1, -1);
|
$sigkill = Coroutine::waitSignal(SIGKILL | SIGUSR1);
|
||||||
if ($sigkill !== false) {
|
if ($sigkill !== false) {
|
||||||
while (Snowflake::app()->isRun()) {
|
while (Snowflake::app()->isRun()) {
|
||||||
Coroutine::sleep(1);
|
Coroutine::sleep(1);
|
||||||
|
|||||||
Reference in New Issue
Block a user