[Pgpool-committers] pgpool - pgpool: Fix race condition between flag checking and signal

User Y-asaba y-asaba at pgfoundry.org
Mon Jul 9 05:12:21 UTC 2007


Log Message:
-----------
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.

Modified Files:
--------------
    pgpool:
        main.c (r1.20 -> r1.21)
        (http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/pgpool/pgpool/main.c.diff?r1=1.20&r2=1.21)
        config.h.in (r1.6 -> r1.7)
        (http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/pgpool/pgpool/config.h.in.diff?r1=1.6&r2=1.7)
        configure.in (r1.26 -> r1.27)
        (http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/pgpool/pgpool/configure.in.diff?r1=1.26&r2=1.27)


More information about the Pgpool-committers mailing list