改名
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user