diff --git a/System/Application.php b/System/Application.php index c9d544fd..b121167a 100644 --- a/System/Application.php +++ b/System/Application.php @@ -35,7 +35,6 @@ use function Co\run; * @package Snowflake * * @property-read Config $config - * @property-read WchatProviders $wchat */ class Application extends BaseApplication { @@ -62,6 +61,9 @@ class Application extends BaseApplication } + + + /** * @param Closure|array $closure * @return $this diff --git a/System/Process/Process.php b/System/Process/Process.php index 64f08398..4c32a6ef 100644 --- a/System/Process/Process.php +++ b/System/Process/Process.php @@ -41,8 +41,8 @@ abstract class Process extends \Swoole\Process implements SProcess putenv('environmental=' . Snowflake::PROCESS); fire(Event::SERVER_WORKER_START); - if (Snowflake::getPlatform()->isLinux()) { - swoole_set_process_name($this->getProcessName()); + if (Snowflake::getPlatform()->isLinux()) { + name($this->pid, $this->getProcessName()); } if (method_exists($this, 'before')) { $this->before($process);