From c6ff538ebd099d7ebeea774b9dfbbfeddfe3707b Mon Sep 17 00:00:00 2001 From: Jay Satiro Date: Tue, 29 Sep 2015 22:08:57 -0400 Subject: runtests: Fix pid check in checkdied Because the 'not' operator has a very low precedence and as a result the entire statement was erroneously negated and could never be true. --- tests/runtests.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/runtests.pl b/tests/runtests.pl index 377d733c7..77ec672d9 100755 --- a/tests/runtests.pl +++ b/tests/runtests.pl @@ -397,7 +397,7 @@ sub init_serverpidfile_hash { sub checkdied { use POSIX ":sys_wait_h"; my $pid = $_[0]; - if(not defined $pid || $pid <= 0) { + if((not defined $pid) || $pid <= 0) { return 0; } my $rc = waitpid($pid, &WNOHANG); -- cgit v1.2.3