diff --git a/System/Process/Process.php b/System/Process/Process.php index 7b3b062a..3855e22d 100644 --- a/System/Process/Process.php +++ b/System/Process/Process.php @@ -30,9 +30,10 @@ abstract class Process extends \Swoole\Process */ public function __construct($application, $name) { - parent::__construct(function (\Swoole\Process $process) use ($name) { + $class = get_called_class(); + parent::__construct(function ($process) use ($name, $class) { if (Snowflake::isLinux()) { - $this->name($name); + $this->name($class . ':' . $name); } $this->onHandler($process); }, false, 1, true);