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:
Родитель
8fd190c04f
Коммит
c6ff538ebd
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче