增加USR1信号,实时获取 worker 信息

This commit is contained in:
JaguarJack
2020-07-09 10:04:31 +08:00
parent 104ad3f744
commit a5b6b479ce
4 changed files with 70 additions and 26 deletions

View File

@@ -97,10 +97,9 @@ trait RegisterSignal
protected function workerStatus()
{
return function () {
// $this->storeStatus();
foreach ($this->processes as $pid => $process) {
foreach ($this->processes as $pid => $process) {
Process::kill($pid, SIGUSR1);
}
}
};
}