[pgpool-committers: 3077] pgpool: Fix pgpool_setup to not confuse log output
Tatsuo Ishii
ishii at postgresql.org
Sun Mar 27 08:09:14 JST 2016
Fix pgpool_setup to not confuse log output
Before it simply redirects the stdout and stderr of pgpool process to
a log file. This could cause log contents being garbled or even
missed because of race condition caused by multiple process being
writing concurrently. I and Usama found this while investigating the
regression failure of 004.watchdog.
To fix this, pgpool_setup now generates startall script so that pgpool
now sends stdout/stderr to cat command and cat writes to the log file
(It seems the race condition does not occur when writing to a pipe).
Branch
------
V3_3_STABLE
Details
-------
http://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=4b5ce5aba196a6bbf311ccefb8b072c2c0937132
Modified Files
--------------
test/pgpool_setup | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
More information about the pgpool-committers
mailing list