This commit is contained in:
xl
2023-05-26 10:43:28 +08:00
parent d58f41d123
commit 9327b74bdc
2 changed files with 1 additions and 2 deletions
-1
View File
@@ -208,7 +208,6 @@ class AsyncServer implements ServerInterface
* @param $no
* @param array $signInfo
* @return void
* @throws ReflectionException
*/
public function onSigint($no, array $signInfo): void
{
+1 -1
View File
@@ -64,7 +64,7 @@ trait TraitServer
*/
public function onSignal(): void
{
$signal = \Kiri\Abstracts\\config('signal', []);
$signal = \config('signal', []);
$this->onPcntlSignal(SIGINT, [$this, 'onSigint']);
foreach ($signal as $sig => $value) {
if (is_array($value) && is_string($value[0])) {