Fix race condition between flag checking and signal blocking.
authorYoshiyuki Asaba <y-asaba at pgfoundry.org>
Mon, 9 Jul 2007 05:12:21 +0000 (05:12 +0000)
committerYoshiyuki Asaba <y-asaba at pgfoundry.org>
Mon, 9 Jul 2007 05:12:21 +0000 (05:12 +0000)
commit28befcb360d4b4a97f571f28793367722f69e292
treef79b8c9ae32db6621afd13142d3aa302aa36d7d7
parentc638ff9018fffbcf90daf06cbeda2fce3114cf48
Fix race condition between flag checking and signal blocking.

Normally, this case solve to call pselect(2). But Linux's pselect(2)
is emulated by select(2) and sigprocmask(2). It contains this race.
So pgpool archieves using the self-pipe trick.

See 'man pselect' if you want to get more information.
config.h.in
configure.in
main.c