This commit is contained in:
as2252258@163.com
2021-02-27 04:21:19 +08:00
parent 98c5797c4f
commit 1d51e1b9d0
-4
View File
@@ -42,10 +42,6 @@ class OnWorkerStart extends Callback
swoole_set_process_name($get_name);
}
Coroutine\go(function () use ($server) {
var_dump(Coroutine::waitPid($server->worker_pid));
$server->stop();
});
$name = ($worker_id >= $server->setting['worker_num'] ? 'Task' : 'Worker');
$this->debug(sprintf($name . ' #%d is start.....', $worker_id));