Bug#280353: gconfd-2: gconfd-2: Fails to detach TTY, one of many steps to become a daemon process.

Mike Mestnik Mike Mestnik <cheako911@yahoo.com>, 280353@bugs.debian.org
Wed, 10 Nov 2004 08:08:53 -0800 (PST)


--- Sebastien Bacher <seb128@debian.org> wrote:

> Le lundi 08 novembre 2004 à 15:26 -0600, Mike Mestnik a écrit :
> 
> > You should read daemon(1) for tips on what is expected of deamons. 
> 
> Hi,
> 
> I don't have that installed on my box and I'm running some dameon so I
> guess that's not a requirement.
> 
> 
> >  The most
> > important of these is to background and start a new process session.
> > and open std* to something other then a TTY(/dev/null) in this case
> stderr
> > should be opend to "~/.xsession-errors".
> 
> > Clear the umask to enable explicit file creation modes.  Close all 
> > open file descriptors.
> 
> Could you provide details on the current situation and what need to be
> changed ? 
> 
The process dose not properly background and dose not become a daemon.

> 
> > Also change directory to the root directory so as not to hamper
> umounts.
> 
> I don't get this point. What's the problem with umount ?
> 
Directorys that are in use(like the CWD for any process) will not be
allowed to unmount.  So if I run your program while in /cdrom I won't be
able to unmount the CD untill your program exits.

> 
> BTW gconfd is an user daemon, does that make a difference ?
> 
Sadly no.

> 
> Cheers,
> 
> Sebastien Bacher
> 
> 
> 



		
__________________________________ 
Do you Yahoo!? 
Check out the new Yahoo! Front Page. 
www.yahoo.com