This commit is contained in:
as2252258@163.com
2021-02-27 04:59:55 +08:00
parent b0439544e3
commit d62e4b2c47
+4 -4
View File
@@ -39,9 +39,9 @@ class OnWorkerStart extends Callback
{
Coroutine::set([
'enable_deadlock_check' => false,
'exit_condition' => function () {
return Coroutine::stats()['coroutine_num'] === 0;
}
// 'exit_condition' => function () {
// return Coroutine::stats()['coroutine_num'] === 0;
// }
]);
putenv('workerId=' . $worker_id);
@@ -50,7 +50,7 @@ class OnWorkerStart extends Callback
swoole_set_process_name($get_name);
}
// $this->onSignal($server, $worker_id);
$this->onSignal($server, $worker_id);
$this->debug(sprintf(workerName($worker_id) . ' #%d is start.....', $worker_id));
if ($worker_id >= $server->setting['worker_num']) {