tech-userlevel archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: How to properly daemonize?
On Sat, Jul 15, 2017 at 06:16:24PM -0400, Ken Hornstein wrote:
> >A better design would be to just use a pipe and write the status to
> >that. No signals necessary. Parents knows if the status read from the
> >pipe is bad OR you get EOF, initialisation went wrong.
>
> Meh, I fail to see how that's "better"; merely different.
IMHO that problem was already faced by supervisor's authors - for
example s6's author puts some thoughts and summaries on their pages:
http://skarnet.org/software/s6/ftrig.html
http://skarnet.org/software/s6/libs6/ftrigr.html
- maybe it will be useful for someone?
Regards,
--
Piotr 'aniou' Meyer
Home |
Main Index |
Thread Index |
Old Index