eee
This commit is contained in:
@@ -6,6 +6,7 @@ namespace Kiri\Server\Processes;
|
||||
use Swoole\Coroutine;
|
||||
use Swoole\Process;
|
||||
use const SIGHUP;
|
||||
use const SIGINT;
|
||||
use const SIGTERM;
|
||||
|
||||
/**
|
||||
@@ -133,7 +134,8 @@ abstract class AbstractProcess implements OnProcessInterface
|
||||
Coroutine::set($array);
|
||||
Coroutine::create(fn() => $this->coroutineWaitSignal());
|
||||
} else {
|
||||
$process::signal(SIGTERM | SIGINT | SIGUSR1, [$this, 'pointWaitSignal']);
|
||||
$process::signal(SIGTERM, [$this, 'pointWaitSignal']);
|
||||
$process::signal(SIGINT, [$this, 'pointWaitSignal']);
|
||||
}
|
||||
return $this;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user