pgpool: Fix terminate_all_childrens() to not block in waitpid().

From: Tatsuo Ishii <ishii(at)postgresql(dot)org>
To: pgpool-committers(at)lists(dot)postgresql(dot)org
Subject: pgpool: Fix terminate_all_childrens() to not block in waitpid().
Date: 2026-11-14 11:40:31
Message-ID: E1xSC7S-0000000BS20-3oS9@gothos.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgpool-committers

Fix terminate_all_childrens() to not block in waitpid().

terminate_all_childrens() waits for child to exit using waitpid
without WNOHANG option. This could hang in waitpid(). Use WNOHANG
option to avoid the hang.

Author: Tatsuo Ishii <ishii(at)postgresql(dot)org>
Backpatch-through: v4.3

Branch
------
master

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

Modified Files
--------------
src/main/pgpool_main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Browse pgpool-committers by date

  From Date Subject
Next Message Tatsuo Ishii 2026-11-15 03:49:20 pgpool: Fix assorted bugs in pgproto.
Previous Message Tatsuo Ishii 2026-11-14 11:40:25 pgpool: Fix terminate_all_childrens() to not block in waitpid().