modify
This commit is contained in:
@@ -41,6 +41,7 @@ class OnWorkerStart extends Callback
|
|||||||
if (!empty($get_name) && !Snowflake::isMac()) {
|
if (!empty($get_name) && !Snowflake::isMac()) {
|
||||||
swoole_set_process_name($get_name);
|
swoole_set_process_name($get_name);
|
||||||
}
|
}
|
||||||
|
|
||||||
Coroutine\go(function () use ($server) {
|
Coroutine\go(function () use ($server) {
|
||||||
var_dump(Coroutine::waitPid($server->worker_pid));
|
var_dump(Coroutine::waitPid($server->worker_pid));
|
||||||
$server->stop();
|
$server->stop();
|
||||||
|
|||||||
Reference in New Issue
Block a user