1
This commit is contained in:
@@ -167,13 +167,13 @@ class CoroutineServer implements SwooleServerInterface
|
|||||||
if (is_string($process)) {
|
if (is_string($process)) {
|
||||||
$process = Kiri::getDi()->get($process);
|
$process = Kiri::getDi()->get($process);
|
||||||
}
|
}
|
||||||
$swowProcess = new Process([$process, 'onHandler'], $process->getRedirectStdinAndStdout(),
|
$sowProcess = new Process([$process, 'onHandler'], $process->getRedirectStdinAndStdout(),
|
||||||
$process->getPipeType(), $process->isEnableCoroutine());
|
$process->getPipeType(), $process->isEnableCoroutine());
|
||||||
if (Kiri::getPlatform()->isLinux()) {
|
if (Kiri::getPlatform()->isLinux()) {
|
||||||
$swowProcess->name($system . '(' . $process->getName() . ')');
|
$sowProcess->name($system . '(' . $process->getName() . ')');
|
||||||
}
|
}
|
||||||
$swowProcess->start();
|
$sowProcess->start();
|
||||||
array_push($processes, $swowProcess);
|
$processes[] = $sowProcess;
|
||||||
}
|
}
|
||||||
return $processes;
|
return $processes;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user