On 17 January 2011 07:49, Phil Bayfield <[email protected]> wrote: > On 17 January 2011 07:44, <[email protected]> wrote: > >> Can anyone give me any clues as to why this might happen? Is there a >>> quit command (I'm already exiting on "QUIT" or empty line from stdin) >>> that the pipe backend sends? Or maybe this is a bug? >>> >> >> I found this in our perl pipe backend: >> >> LINE: while( <> ) { >> exit if getppid() == 1; #Exit, cause my parent is dead! >> ... >> } >> >> Maybe this helps you. >> >> Winfried >> > > Thanks for the quick response! > > Will give something like this a try, thanks! > > Phil. > > 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.
Thanks again! Phil.
_______________________________________________ Pdns-users mailing list [email protected] http://mailman.powerdns.com/mailman/listinfo/pdns-users
