> > if ($timeout) { > for (my $i = 0; $i < $timeout; $i++) { > - return if !PVE::ProcFSTools::check_process_running($cpid); > + return if !&$check_process_running(); Maybe it is worth to include that waitpid in PVE::ProcFSTools::check_process_running() - not sure...