From: Yoshiyuki Asaba Date: Fri, 29 Jun 2007 14:18:20 +0000 (+0000) Subject: Fix race condition between unsetting SIGCHLD flag and unblocking X-Git-Tag: V3_4~29 X-Git-Url: http://git.postgresql.org/gitweb/?a=commitdiff_plain;h=845aba4dbb423b3ccd47e94725030fe7f0299523;p=pgpool1.git Fix race condition between unsetting SIGCHLD flag and unblocking SIGCHLD signal. --- diff --git a/main.c b/main.c index f44bd6f..ad1deee 100644 --- a/main.c +++ b/main.c @@ -57,7 +57,6 @@ if (sigchld_request) \ { \ reaper(); \ - sigchld_request = 0; \ } \ } while (0) @@ -1018,6 +1017,7 @@ static void reaper(void) POOL_SETMASK(&BlockSig); pool_debug("reap_handler called"); + sigchld_request = 0; if (exiting) {