diff --git a/src/Helpers/LocalMachineHelper.php b/src/Helpers/LocalMachineHelper.php index e6fd68db5..39008f2a8 100644 --- a/src/Helpers/LocalMachineHelper.php +++ b/src/Helpers/LocalMachineHelper.php @@ -131,7 +131,12 @@ private function executeProcess(Process $process, callable $callback = NULL, ?bo }; } $process->start(); - $process->wait($callback); + set_error_handler(fn () => NULL); + while ($process->isRunning()) { + $process->checkTimeout(); + usleep(1000); + } + restore_error_handler(); $this->logger->notice('Command: {command} [Exit: {exit}]', [ 'command' => $process->getCommandLine(),