This commit is contained in:
2020-09-01 15:01:11 +08:00
parent 0d5d7322ca
commit f4fbb04525
2 changed files with 5 additions and 6 deletions
+3 -5
View File
@@ -38,13 +38,11 @@ abstract class Process extends Component
/**
* @param $process
*/
protected function start($process)
protected function start()
{
do {
$this->onHandler($process);
} while (true);
$_process = new \Swoole\Process([$this, 'onHandler'], false, null, true);
$_process->start();
}
}