From: Chris F. <ch...@fr...> - 2008-01-02 18:42:53
|
On Wed, Jan 02, 2008 at 11:23:31AM +0100, Miklos Szeredi wrote: > > Should the FUSE library create a new process group (setsid()) after the > > fork() call when daemonizing, in lib/mount{,_bsd,_darwin,_util}.c? > > A scord user reported this issue a few weeks back. > > I don't think setsid() is needed, since the forked process will only > run for a short time, and the parent waits for it to finish. I meant the fork that daemonizes the server, not the add mount fork. Does this make more sense? > How does this affect scord? When starting scord from launchd on MacOSX 10.5, launchd warns of a "Stray process with PGID equal to this dead job". scord may not be faithfully exhibiting the expected launchd behavior, but creating a new process group id for FUSE daemons seems like a good idea regardless. -- Chris Frost | <http://www.frostnet.net/chris/> -------------+---------------------------------- PGP: <http://www.frostnet.net/chris/pgpkey.txt> |