summaryrefslogtreecommitdiff
path: root/mysql-test/lib/My/SafeProcess.pm
diff options
context:
space:
mode:
authorMagnus Svensson <msvensson@mysql.com>2008-10-10 09:19:19 +0200
committerMagnus Svensson <msvensson@mysql.com>2008-10-10 09:19:19 +0200
commit9ffab585062941dcf2056717a05fb27bb863fd64 (patch)
tree006252a762ffe1d48f30b82eca86585d8284324e /mysql-test/lib/My/SafeProcess.pm
parent1d2d59aeb9051343e97a710c67e6cb90f421b1b7 (diff)
downloadmariadb-git-9ffab585062941dcf2056717a05fb27bb863fd64.tar.gz
WL#41890 After review fixes, remove unecessary if's
Diffstat (limited to 'mysql-test/lib/My/SafeProcess.pm')
-rw-r--r--mysql-test/lib/My/SafeProcess.pm9
1 files changed, 1 insertions, 8 deletions
diff --git a/mysql-test/lib/My/SafeProcess.pm b/mysql-test/lib/My/SafeProcess.pm
index a4348699d9c..cb68b323d5e 100644
--- a/mysql-test/lib/My/SafeProcess.pm
+++ b/mysql-test/lib/My/SafeProcess.pm
@@ -501,13 +501,6 @@ sub wait_any {
last if $pid == $ret_pid;
}
} 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
{
@@ -522,7 +515,7 @@ sub wait_any {
# Look it up in "running" table
my $proc= $running{$ret_pid};
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";
return undef;
}