pg.ddx.io  pgpool-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
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:25 +0000
Message-ID: <E1xSC7N-0000000BRx7-3Kns@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_7_STABLE

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

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



view thread (6+ messages)  latest in thread

Message-ID: <E1xSC7N-0000000BRx7-3Kns@gothos.postgresql.org>
Permalink:  ../E1xSC7N-0000000BRx7-3Kns@gothos.postgresql.org/
Also on:    postgresql.org/message-id/E1xSC7N-0000000BRx7-3Kns@gothos.postgresql.org

 · 

reply

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: <E1xSC7N-0000000BRx7-3Kns@gothos.postgresql.org>
  References: <E1xSC7N-0000000BRx7-3Kns@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