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

J.H.M. Dassen (Ray) 280353@bugs.debian.org, 280353@bugs.debian.org
Tue, 9 Nov 2004 13:05:28 +0100


On Tue, Nov 09, 2004 at 12:23:41 +0100, Sebastien Bacher wrote:
> Le lundi 08 novembre 2004 =E0 15:26 -0600, Mike Mestnik a =E9crit :
> > You should read daemon(1) for tips on what is expected of deamons.=20

> I don't have that installed on my box

The canonical reference for proper daemonisation of a Unix process is
W. Richard Stevens, Advanced Programming in the UNIX(R) Environment,
Addison-Wesley, 1992. Source code can be found in the "daemoninit.c" in
http://www.kohala.com/start/apue.tar.Z ; a paraphrase of it is part of
http://knight.cis.temple.edu/~ingargio/cis307/readings/daemon.html .

HTH,
Ray
--=20
Signs of world domination:
	"Tonight on Celebrity Deathmatch: Tux takes on the BSD daemon"