Commit c6ff538e authored by Jay Satiro's avatar Jay Satiro
Browse files

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.
parent 8fd190c0
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -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);