summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Satiro <raysatiro@yahoo.com>2015-09-29 22:08:57 -0400
committerJay Satiro <raysatiro@yahoo.com>2015-09-29 22:08:57 -0400
commitc6ff538ebd099d7ebeea774b9dfbbfeddfe3707b (patch)
treec20e05b73ff00f94d7ef3558e03b3d6b64e16d0d
parent8fd190c04ff1c83e8a72c6161cff6e320a87e6db (diff)
downloadcurl-c6ff538ebd099d7ebeea774b9dfbbfeddfe3707b.tar.gz
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.
-rwxr-xr-xtests/runtests.pl2
1 files changed, 1 insertions, 1 deletions
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);