stanley-king 4 years ago
parent
commit
c458dfa7b4
1 changed files with 4 additions and 0 deletions
  1. 4 0
      rdispatcher/codispatcher.php

+ 4 - 0
rdispatcher/codispatcher.php

@@ -170,6 +170,10 @@ go(function ()
 //    $status = swoole_process::wait();
 //    echo "Worker#{$status['pid']} exit\n";
     });
+
+    Swoole\Process::signal(SIGKILL, function($signal_num) {
+        Log::record("shutdown 6.",Log::DEBUG);
+    });
 });