This commit is contained in:
2021-03-04 14:40:33 +08:00
parent 486daf639a
commit 5d1a3b3533
10 changed files with 67 additions and 42 deletions
+2 -1
View File
@@ -40,13 +40,14 @@ abstract class Process extends \Swoole\Process implements SProcess
/**
* @param Process $process
* @throws ComponentException
* @throws Exception
*/
public function _load(Process $process)
{
putenv('environmental=' . Snowflake::PROCESS);
fire(Event::SERVER_WORKER_START);
if (Snowflake::isLinux()) {
if (Snowflake::getPlatform()->isLinux()) {
$this->name($this->getPrefix());
}
$this->onHandler($process);