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:16
Message-ID: E1xSC7D-0000000BRkY-3qoT@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
------
V4_5_STABLE

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

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-14 11:40:20 pgpool: Fix terminate_all_childrens() to not block in waitpid().
Previous Message Tatsuo Ishii 2026-11-14 11:40:11 pgpool: Fix terminate_all_childrens() to not block in waitpid().