qqq
This commit is contained in:
@@ -197,6 +197,7 @@ class AsyncServer implements ServerInterface
|
|||||||
public function onSigint($no, array $signInfo): void
|
public function onSigint($no, array $signInfo): void
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
|
Logger::_alert("");
|
||||||
Logger::_alert('Pid ' . getmypid() . ' get signo ' . $no);
|
Logger::_alert('Pid ' . getmypid() . ' get signo ' . $no);
|
||||||
$this->shutdown();
|
$this->shutdown();
|
||||||
} catch (\Throwable $exception) {
|
} catch (\Throwable $exception) {
|
||||||
|
|||||||
@@ -85,7 +85,7 @@ trait TraitServer
|
|||||||
*/
|
*/
|
||||||
private function onPcntlSignal($signal, $callback): void
|
private function onPcntlSignal($signal, $callback): void
|
||||||
{
|
{
|
||||||
pcntl_signal(SIGINT, [$this, 'onSigint']);
|
pcntl_signal($signal, $callback);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -101,7 +101,6 @@ trait TraitServer
|
|||||||
/**
|
/**
|
||||||
* @param array $ports
|
* @param array $ports
|
||||||
* @return array
|
* @return array
|
||||||
* @throws ReflectionException
|
|
||||||
*/
|
*/
|
||||||
public function sortService(array $ports): array
|
public function sortService(array $ports): array
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user