This commit is contained in:
2021-03-29 11:41:46 +08:00
parent 118ac9efe5
commit 98778b69fb
4 changed files with 16 additions and 17 deletions
+2 -2
View File
@@ -47,7 +47,7 @@ abstract class Process extends \Swoole\Process implements SProcess
fire(Event::SERVER_WORKER_START);
if (Snowflake::getPlatform()->isLinux()) {
$this->name($this->getPrefix());
name($process->pid, $this->getPrefix());
}
$this->onHandler($process);
}
@@ -58,7 +58,7 @@ abstract class Process extends \Swoole\Process implements SProcess
*/
#[Pure] private function getPrefix(): string
{
return Snowflake::app()->id . ' ' . get_called_class();
return get_called_class();
}