Re: Convert pcp_exit_handler and wakeup_handler_parent to flag-only.

From: Tatsuo Ishii <ishii(at)postgresql(dot)org>
To: koshino(at)sraoss(dot)co(dot)jp
Cc: pgpool-hackers(at)lists(dot)postgresql(dot)org, emond(dot)papegaaij(at)gmail(dot)com
Subject: Re: Convert pcp_exit_handler and wakeup_handler_parent to flag-only.
Date: 2026-08-27 06:59:58
Message-ID: 20260827.155958.1451246468330223007.ishii@postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgpool-hackers

> However, 028-lifecheck-exit-handler-flag-only is failing due to a timeout
> in the 004 watchdog test case, so 028 has not been posted to this ML yet.

I skimmed related source file (wd_lifecheck.c) and found following
loop in lifecheck_exit_handler(after patch renamed to
process_lifecheck_exit_request):

do
{
wpid = wait(NULL);
} while (wpid > 0 || (wpid == -1 && errno == EINTR));

I think this loop could wait forever if one of child process won't
respond to the kill signal. Is it possible for you to confirm this?

Regards,
--
Tatsuo Ishii
SRA OSS K.K.
English: http://www.sraoss.co.jp/index_en/
Japanese:http://www.sraoss.co.jp

In response to

Responses

Browse pgpool-hackers by date

  From Date Subject
Next Message Koshino Taiki 2026-09-01 07:27:42 Re: Convert pcp_exit_handler and wakeup_handler_parent to flag-only.
Previous Message Tatsuo Ishii 2026-08-27 04:08:14 Re: Delimit query-cache key to prevent collisions