<br><br><div class="gmail_quote">On 17 January 2011 07:49, Phil Bayfield <span dir="ltr"><<a href="mailto:phil@bayfmail.com">phil@bayfmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="gmail_quote"><div><div></div><div class="h5">On 17 January 2011 07:44,  <span dir="ltr"><<a href="mailto:abang@t-ipnet.net" target="_blank">abang@t-ipnet.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Can anyone give me any clues as to why this might happen? Is there a<br>
quit command (I'm already exiting on "QUIT" or empty line from stdin)<br>
that the pipe backend sends? Or maybe this is a bug?<br>
</blockquote>
<br></div>
I found this in our perl pipe backend:<br>
<br>
LINE: while( <> ) {<br>
   exit if getppid() == 1; #Exit, cause my parent is dead!<br>
...<br>
}<br>
<br>
Maybe this helps you.<br>
<br>
Winfried<br></blockquote><div><br></div></div></div><div>Thanks for the quick response!</div><div><br></div><div>Will give something like this a try, thanks!</div><div><br></div><div>Phil. </div></div><br>
</blockquote></div><br><div>This did the trick, I changed my program so that the code that talks to PowerDNS is now spawned as a secondary thread (as stdin blocks in the language I'm using) while the main thread monitors parent pid and calls exit when the parent dies.</div>
<div><br></div><div>Thanks again!</div><div><br></div><div>Phil.</div>