code: protected function killall($signal)
      {
          $signalAction = $signal == SIGTERM ? "exit" : "quit";
          /**
           * @var $worker Worker
           */
          foreach ($this->workers as $worker) {
  
              $this->kill($worker->id(), $signal);
          }
      }
docs: 杀掉所有进程
  
  @param int $signal 使用的信号
  @return void