private static function waitChildProcess(string $name, $boot)
    {
        /* @var \Swoft\Process\ProcessInterface $processObject */
        $processObject = App::getBean($name);
        if (($hasWait = method_exists($processObject, 'wait')) || $boot) {
            Process::signal(SIGCHLD, function($sig) use ($name, $processObject, $hasWait) {
                while($ret =  Process::wait(false)) {
                    if ($hasWait) {
                        $processObject->wait($ret);
                    }

                    unset(self::$processes[$name]);
                }
            }); 
        }
    }
private static function waitChildProcess(string $name, $boot)
    {
        /* @var \Swoft\Process\ProcessInterface $processObject */
        $processObject = App::getBean($name);
        if (($hasWait = method_exists($processObject, 'wait')) || $boot) {
            Process::signal(SIGCHLD, function($sig) use ($name, $processObject, $hasWait) {
                while($ret =  Process::wait(false)) {
                    if ($hasWait) {
                        $processObject->wait($ret);
                    }

                    unset(self::$processes[$name]);
                }
            }); 
        }
    }
private static function waitChildProcess ( string $ name , $ boot ) { /* @var \Swoft\Process\ProcessInterface $processObject */ $ processObject = App :: getBean ( $ name ) ; if ( ( $ hasWait = method_exists ( $ processObject , 'wait' ) ) || $ boot ) { Process :: signal ( SIGCHLD , function ( $ sig ) use ( $ name , $ processObject , $ hasWait ) { while ( $ ret = Process :: wait ( false ) ) { if ( $ hasWait ) { $ processObject -> wait ( $ ret ) ; } unset ( self :: $ processes [ $ name ] ) ; } } ) ; } }
Wait child process
Wait child process