From: Tatsuo Ishii <ishii@postgresql.org>
To: pgpool-committers@lists.postgresql.org
Subject: pgpool: Fix terminate_all_childrens() to not block in waitpid().
Date: Sat, 14 Nov 2026 11:40:20 +0000
Message-ID: <E1xSC7I-0000000BRp9-3JTB@gothos.postgresql.org> (raw)
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@postgresql.org>
Backpatch-through: v4.3
Branch
------
V4_6_STABLE
Details
-------
https://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=11f86ace01d8d33992d201a137151efbc116b...
Modified Files
--------------
src/main/pgpool_main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgpool-committers@postgresql.org
Cc: ishii@postgresql.org
Subject: Re: pgpool: Fix terminate_all_childrens() to not block in waitpid().
In-Reply-To: <E1xSC7I-0000000BRp9-3JTB@gothos.postgresql.org>
References: <E1xSC7I-0000000BRp9-3JTB@gothos.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox