[pgpool-committers: 7989] pgpool: Fix pgpool logger process eats 100% cpu.

Tatsuo Ishii ishii at sraoss.co.jp
Thu Aug 12 16:51:12 JST 2021


Fix pgpool logger process eats 100% cpu.

The select(2) loop in the logger process did not initialize
timeout.tv_usec, which could cause error in select(2) because of too
big tv_usec. In this select(2) immediately returned and iterate the
for loop.

Problem reported and patch provided by Fang Jun.
Discussion: https://www.pgpool.net/pipermail/pgpool-hackers/2021-August/003993.html

Branch
------
V4_2_STABLE

Details
-------
https://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=1e77a9413cc09f8bc97313cf5c00743b163de505

Modified Files
--------------
src/main/pgpool_logger.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)



More information about the pgpool-committers mailing list