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:25
Message-ID: E1xSC7N-0000000BRx7-3Kns@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_7_STABLE

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

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