Antwort: [RFC] Missing signal handling in ndo2db

Andreas Ericsson ae at op5.se
Wed Jul 1 16:53:58 CEST 2009


Hendrik Baecker wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Sascha.Runschke at gfkl.com schrieb:
>> In my opinion ndo is totally missing a proper handling of itself and
>> its children. What you describe is just a designflaw in my eyes.
>>
> What I've described was a missing signalling to the childs, can't
> imagine how some system paths and files in there should help a program
> to communicate with his childs...
> 

Feel free to rip the daemonize.c file from merlin. It does most of the
normal stuff and supports the -k flag to the program, to kill off a
running instance. Then it's just a rather simple matter of passing
SIGTERM to all children when caught.

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231

Considering the successes of the wars on alcohol, poverty, drugs and
terror, I think we should give some serious thought to declaring war
on peace.

------------------------------------------------------------------------------




More information about the Developers mailing list