protected function restartScript(InputInterface $input, OutputInterface $output)
    {
        $proc = popen('php -f ' . join(' ', $GLOBALS['argv']) . ' 2>&1', 'r');
        while (!feof($proc)) {
            $output->write(fread($proc, 4096));
        }

        return pclose($proc);
    }
protected function restartScript(InputInterface $input, OutputInterface $output)
    {
        $proc = popen('php -f ' . join(' ', $GLOBALS['argv']) . ' 2>&1', 'r');
        while (!feof($proc)) {
            $output->write(fread($proc, 4096));
        }

        return pclose($proc);
    }
protected function restartScript ( InputInterface $ input , OutputInterface $ output ) { $ proc = popen ( 'php -f ' . join ( ' ' , $ GLOBALS [ 'argv' ] ) . ' 2>&1' , 'r' ) ; while ( ! feof ( $ proc ) ) { $ output -> write ( fread ( $ proc , 4096 ) ) ; } return pclose ( $ proc ) ; }
Executes another copy of console process to continue updates

We may encounter problems when module update scripts (update.php or update_post.php) requires module files,
they are included only once and stay in most early version.
Bitrix update system always run update scripts in separate requests to web-server.
This ensures the same behavior as in original update system, updates always run on latest module version.

@param InputInterface $input
@param OutputInterface $output

@return int
Executes another copy of console process to continue updates