src/Leevel/Protocol/Server.php
protected function setProcessName(string $name): void
    {
        if (function_exists('cli_set_process_title')) {
            cli_set_process_title($name);
        } else {
            if (function_exists('swoole_set_process_name')) {
                swoole_set_process_name($name);
            } else {
                throw new InvalidArgumentException(
                    'Require cli_set_process_title or swoole_set_process_name.'
                );
            }
        }
    }
protected function setProcessName(string $name): void
    {
        if (function_exists('cli_set_process_title')) {
            cli_set_process_title($name);
        } else {
            if (function_exists('swoole_set_process_name')) {
                swoole_set_process_name($name);
            } else {
                throw new InvalidArgumentException(
                    'Require cli_set_process_title or swoole_set_process_name.'
                );
            }
        }
    }
设置 swoole 进程名称.

@param string $name

@see http://php.net/manual/zh/function.cli-set-process-title.php
@see https://wiki.swoole.com/wiki/page/125.html