svn commit: r230869 - head/usr.sbin/daemon

Andrey Zonov andrey at zonov.org
Mon Feb 6 19:18:54 UTC 2012


On 06.02.2012 19:25, John Baldwin wrote:
>>
>> My expectation is that as long as parent process holds pidfile
>> descriptor open and locked, the pidfile should remain locked even after
>> fork(2)/execve(2). Worth checking, though.
>
> Yes, if the daemon process hung around that would work.  Note that I think
> you would need to do a double-fork for that to work though since users
> expect daemon to return instantly and not need to be put in the background.
>

It would be also nice to have an option for automatically respawn the 
child.  This option has GNU version of daemon.  What do you think?

-- 
Andrey Zonov


More information about the svn-src-head mailing list