tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Library support for two-phase daemonization

On Mon, Feb 03, 2014 at 10:07:04AM +0200, Andreas Gustafsson wrote:
> > This is one more reason to pass the file descriptor back to the
> > parent like joerg suggested.
> I don't see any such proposal from Joerg - he proposed returning the
> file descriptor from deaemon2(), which amounts to passing it to the
> child, not the parent.

Correct. In my proposal, the daemonize function would not return in the
parent and call (_)exit when done.


Home | Main Index | Thread Index | Old Index