From: Jay Satiro Date: Wed, 30 Sep 2015 02:08:57 +0000 (-0400) Subject: runtests: Fix pid check in checkdied X-Git-Tag: curl-7_45_0~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c6ff538ebd099d7ebeea774b9dfbbfeddfe3707b;p=curl 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. --- 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);