Commit 260c3491 authored by Magnus Svensson's avatar Magnus Svensson

WL#41890 After review fixes, remove unecessary if's

parent dd1c48c3
...@@ -501,13 +501,6 @@ sub wait_any { ...@@ -501,13 +501,6 @@ sub wait_any {
last if $pid == $ret_pid; last if $pid == $ret_pid;
} }
} while ($ret_pid == 0); } while ($ret_pid == 0);
# Special processig of return code
# since negative pids are valid
if ($ret_pid == 0 or $ret_pid == -1) {
print STDERR "wait_any, got invalid pid: $ret_pid\n";
return undef;
}
} }
else else
{ {
...@@ -522,7 +515,7 @@ sub wait_any { ...@@ -522,7 +515,7 @@ sub wait_any {
# Look it up in "running" table # Look it up in "running" table
my $proc= $running{$ret_pid}; my $proc= $running{$ret_pid};
unless (defined $proc){ unless (defined $proc){
print STDERR "Could not find pid in running list\n"; print STDERR "Could not find pid: $ret_pid in running list\n";
print STDERR "running: ". join(", ", keys(%running)). "\n"; print STDERR "running: ". join(", ", keys(%running)). "\n";
return undef; return undef;
} }
......
Markdown is supported
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