This commit is contained in:
2021-04-28 12:03:30 +08:00
parent ce2367157e
commit a030c078ae
+1 -6
View File
@@ -41,16 +41,11 @@ abstract class Process extends \Swoole\Process implements SProcess
fire(Event::SERVER_WORKER_START);
if (Snowflake::getPlatform()->isLinux()) {
name($process->pid, $this->getPrefix());
swoole_set_process_name($this->getProcessName());
}
if (method_exists($this, 'before')) {
$this->before($process);
}
if (!Snowflake::getPlatform()->isMac()) {
if (method_exists($this, 'getProcessName')) {
swoole_set_process_name($this->getProcessName());
}
}
$this->onHandler($process);
}