[Pgpool-committers] pgpool - pgpool-II: - Close all file descriptors when running in daemon

User T-ishii t-ishii at pgfoundry.org
Thu Aug 28 12:35:32 UTC 2008


Log Message:
-----------
- Close all file descriptors when running in daemon mode.  Otherwise
  we inherit socket from apache when it's started by pgpoolAdmin. This
  results in that port 80 is occupied for example.  Pach provided by
  Akio Ishida. Also add chdir("/"). This always good for daemon
  programs.

- Always fail over and restart all children. Before we do not restart
  if master has not been changed. This was wrong. If we have trouble
  with network cable or something, TCP/IP stack keeps on retrying for
  long time and the only way to prevent it is restarting process.

Modified Files:
--------------
    pgpool-II:
        main.c (r1.37 -> r1.38)
        (http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/pgpool/pgpool-II/main.c.diff?r1=1.37&r2=1.38)


More information about the Pgpool-committers mailing list