From 7833ab5bb6e00b05392ab6ef66560ab1568c6aa4 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Thu, 4 Jan 2001 00:17:03 +0000 Subject: [PATCH] Fix waitpid/wait3 return == 0 check --- servers/slapd/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/servers/slapd/main.c b/servers/slapd/main.c index 4b38c3f9b9..28be1d10d1 100644 --- a/servers/slapd/main.c +++ b/servers/slapd/main.c @@ -490,10 +490,10 @@ wait4child( int sig ) #ifdef WNOHANG errno = 0; #ifdef HAVE_WAITPID - while ( waitpid( (pid_t)-1, NULL, WNOHANG ) >= 0 || errno == EINTR ) + while ( waitpid( (pid_t)-1, NULL, WNOHANG ) > 0 || errno == EINTR ) ; /* NULL */ #else - while ( wait3( NULL, WNOHANG, NULL ) >= 0 || errno == EINTR ) + while ( wait3( NULL, WNOHANG, NULL ) > 0 || errno == EINTR ) ; /* NULL */ #endif #else -- 2.47.2