xy 3 周之前
父节点
当前提交
81a0cd90d4
共有 1 个文件被更改,包括 5 次插入5 次删除
  1. 5 5
      src/main.php

+ 5 - 5
src/main.php

@@ -16,11 +16,11 @@ class ProgramMain {
         $client = self::getClient();
         
         // 设置信号处理
-        pcntl_async_signals(true);
-        pcntl_signal(SIGINT, function() use ($client) {
-            $client->close();
-            exit(0);
-        });
+        // pcntl_async_signals(true);
+        // pcntl_signal(SIGINT, function() use ($client) {
+        //     $client->close();
+        //     exit(0);
+        // });
 
          // 设置非阻塞标准输入
         stream_set_blocking(STDIN, false);