Skip to content

Commit

Permalink
fix: properly check if process has finished
Browse files Browse the repository at this point in the history
Also fixes problem locking machines when preparing
  • Loading branch information
frankiejol committed Oct 31, 2023
1 parent b34d078 commit 4514923
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/Ravada.pm
Original file line number Diff line number Diff line change
Expand Up @@ -4499,6 +4499,7 @@ sub _wait_pids($self) {
for my $type ( keys %{$self->{pids}} ) {
for my $pid ( keys %{$self->{pids}->{$type}}) {
my $kid = waitpid($pid , WNOHANG);
next if kill(0,$pid);
push @done, ($pid) if $kid == $pid || $kid == -1;
}
}
Expand Down

0 comments on commit 4514923

Please sign in to comment.