mirror of
https://github.com/curl/curl.git
synced 2026-08-25 10:13:36 +03:00
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.
This commit is contained in:
parent
8fd190c04f
commit
c6ff538ebd
1 changed files with 1 additions and 1 deletions
|
|
@ -397,7 +397,7 @@ sub init_serverpidfile_hash {
|
||||||
sub checkdied {
|
sub checkdied {
|
||||||
use POSIX ":sys_wait_h";
|
use POSIX ":sys_wait_h";
|
||||||
my $pid = $_[0];
|
my $pid = $_[0];
|
||||||
if(not defined $pid || $pid <= 0) {
|
if((not defined $pid) || $pid <= 0) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
my $rc = waitpid($pid, &WNOHANG);
|
my $rc = waitpid($pid, &WNOHANG);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue