Commit c7d07067 authored by Francesc Guasch's avatar Francesc Guasch
Browse files

fix(backend): done process get closed

parent 4480daf2
......@@ -2599,8 +2599,7 @@ sub _wait_pids {
for my $type ( keys %{$self->{pids}} ) {
for my $pid ( keys %{$self->{pids}->{$type}}) {
my $kid = waitpid($pid , WNOHANG);
last if $kid <= 0 ;
push @done, ($kid);
push @done, ($pid) if $kid == $pid || $kid == -1;
}
}
return if !@done;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment