[Pgpool-committers] pgpool - pgpool-II: Fix bug with initializing pool_password in daemon

User T-ishii t-ishii at pgfoundry.org
Mon May 23 10:55:36 UTC 2011


Log Message:
-----------
Fix bug with initializing pool_password in daemon mode.
Patch from Nicolas Thauvin.

To: pgpool-hackers at pgfoundry.org
Date: Tue, 17 May 2011 17:08:56 +0200
------------------------------------------------------------------------
When in daemon mode, connection hangs when using md5 authentication
method. The child process in charge of the client goes into an infinite
loop in pool_get_passwd() while trying to read the pool_passwd file.

The cause of the problem comes from the daemonize() function that closes
all file descriptors starting from 3, including the file descriptor of
the pool_passwd file. When pgpool gets to pool_get_passwd, the null
checks on the passwd_fd variable fail because the variable was not reset
to a NULL value.

Modified Files:
--------------
    pgpool-II:
        main.c (r1.100 -> r1.101)
        (http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/pgpool/pgpool-II/main.c?r1=1.100&r2=1.101)


More information about the Pgpool-committers mailing list