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
+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);