pgpool2.git / summary / log / commit / refs

commit    8db15261d8ed9520de1486fb59fa57d6687aee62
Author:   Yoshiyuki Asaba <y-asaba at pgfoundry.org>
Date:     Mon Jul 09 05:18:14 2007 +0000

    Add comments.


main.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main.c b/main.c index 1c2b767b3..d45a8b467 100644 --- a/main.c +++ b/main.c @@ -1005,7 +1005,7 @@ static RETSIGTYPE failover_handler(int sig) /* * backend connection error, failover/failback request, if possible - * + * failover() must be called under protecting signals. */ static void failover(void) { @@ -1350,6 +1350,7 @@ static RETSIGTYPE reap_handler(int sig) /* * Attach zombie processes and restart child processes. + * reaper() must be called under protecting signals. */ static void reaper(void) { @@ -1550,8 +1551,10 @@ static void pool_sleep(unsigned int second) } r = pool_pause(&timeout); + POOL_SETMASK(&BlockSig); if (r > 0) CHECK_REQUEST; + POOL_SETMASK(&UnBlockSig); gettimeofday(&current_time, NULL); } POOL_SETMASK(&BlockSig); [parent: f44ecc5b51cd]