This commit is contained in:
2021-07-08 18:02:21 +08:00
parent 3bb3d5a1d7
commit 516c7612a5
2 changed files with 5 additions and 3 deletions
+3 -1
View File
@@ -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
+2 -2
View File
@@ -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);