[Pgpool-committers] pgpool - pgpool-II: Improve signal handling.

User Y-asaba y-asaba at pgfoundry.org
Thu Jul 5 09:12:37 UTC 2007


Log Message:
-----------
Improve signal handling.

We fixed signal handling at revision 1.6. That fix was to set a flag
in signal handler, then pgpool checked flags in safe points. However
It has a race condition in the following case.

  CHECK_REQUEST;   <-- check flags
  <signal handler> <-- set flags
  pause();         <-- wait for signals

So, we modified to deliver signals in safe places which are in pause()
and sleep().

Modified Files:
--------------
    pgpool-II:
        main.c (r1.9 -> r1.10)
        (http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/pgpool/pgpool-II/main.c.diff?r1=1.9&r2=1.10)


More information about the Pgpool-committers mailing list