<div dir="ltr">Hi Yugo<div><br></div><div>Yes, correct. Sorry I forgot to reply back on the thread.</div><div><br></div><div>Thanks</div><div>Regards</div><div>Muhammad Usama<br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Dec 28, 2015 at 11:03 AM, Yugo Nagata <span dir="ltr">&lt;<a href="mailto:nagata@sraoss.co.jp" target="_blank">nagata@sraoss.co.jp</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Usama,<br>
<br>
Although there is no comment from you, I believe the following commit<br>
is the response to fix this.<br>
<a href="http://git.postgresql.org/gitweb/?p=pgpool2.git;a=commitdiff;h=7f752d7606f758c5959dc91bb96346bef11de6e4;hp=8038107d8e1b0d7eb665255c11384c1a6386b94a" rel="noreferrer" target="_blank">http://git.postgresql.org/gitweb/?p=pgpool2.git;a=commitdiff;h=7f752d7606f758c5959dc91bb96346bef11de6e4;hp=8038107d8e1b0d7eb665255c11384c1a6386b94a</a><br>
<br>
However, unfortunately this problem is not resolved, since SIGCHLD handeler is<br>
not set before watchdog process is forked and pgpool waits watchdeog firing<br>
SIGUSR2 at sigsuspend forever.<br>
<br>
Please find the attached patch to fix this. This set SIGCHLD handler before<br>
initialize_watchdog() and if this fails with FATAL and exits, reaper() will<br>
handle this and pgpool will be shutdown successfully.<br>
<br>
Regards,<br>
<div class="HOEnZb"><div class="h5"><br>
On Mon, 21 Dec 2015 19:22:44 +0900<br>
Yugo Nagata &lt;<a href="mailto:nagata@sraoss.co.jp">nagata@sraoss.co.jp</a>&gt; wrote:<br>
<br>
&gt; Usama,<br>
&gt;<br>
&gt; When watchdog ADD request is rejected due to configuration inconsistency,<br>
&gt; the FATAL error occurs at the rejected watchdog.<br>
&gt;<br>
&gt;  FATAL:  Add to watchdog cluster request is rejected by node &quot;localhost:9000&quot;<br>
&gt;<br>
&gt; However, after that, the pgpool-II parent process remains but any children<br>
&gt; are not forked. I can&#39;t terminate pgpool by `pgpool stop` but we have to<br>
&gt; use kill command.<br>
&gt;<br>
&gt; I think pgpool-II should fail to start and be terminated cleanly in<br>
&gt; this situation.<br>
&gt;<br>
&gt; --<br>
&gt; Yugo Nagata &lt;<a href="mailto:nagata@sraoss.co.jp">nagata@sraoss.co.jp</a>&gt;<br>
&gt; _______________________________________________<br>
&gt; pgpool-hackers mailing list<br>
&gt; <a href="mailto:pgpool-hackers@pgpool.net">pgpool-hackers@pgpool.net</a><br>
&gt; <a href="http://www.pgpool.net/mailman/listinfo/pgpool-hackers" rel="noreferrer" target="_blank">http://www.pgpool.net/mailman/listinfo/pgpool-hackers</a><br>
<br>
<br>
</div></div><span class="HOEnZb"><font color="#888888">--<br>
Yugo Nagata &lt;<a href="mailto:nagata@sraoss.co.jp">nagata@sraoss.co.jp</a>&gt;<br>
</font></span><br>_______________________________________________<br>
pgpool-hackers mailing list<br>
<a href="mailto:pgpool-hackers@pgpool.net">pgpool-hackers@pgpool.net</a><br>
<a href="http://www.pgpool.net/mailman/listinfo/pgpool-hackers" rel="noreferrer" target="_blank">http://www.pgpool.net/mailman/listinfo/pgpool-hackers</a><br>
<br></blockquote></div><br></div></div></div>