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

Tatsuo Ishii ishii at sraoss.co.jp
Thu Aug 12 16:51:18 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
------
master

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

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



More information about the pgpool-committers mailing list