修改信号处理

This commit is contained in:
JaguarJack 2020-07-09 22:01:52 +08:00
parent e678b4ce51
commit 6db13b9eab

View File

@ -65,10 +65,11 @@ trait RegisterSignal
if (isset($this->processes[$res['pid']])) { if (isset($this->processes[$res['pid']])) {
$this->unsetWorkerStatus($res['pid']); $this->unsetWorkerStatus($res['pid']);
unset($this->processes[$res['pid']]); unset($this->processes[$res['pid']]);
} } else {
// 临时进程数目减少一次 // 临时进程数目减少一次
$this->temporaryNum -= 1; $this->temporaryNum -= 1;
} }
}
}; };
} }