Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!helios!auvc6!auvhess From: auvhess@auvc6.tamu.edu (David K. Hess) Newsgroups: comp.unix.wizards Subject: Daemonizing question... Keywords: daemon, open Message-ID: <12459@helios.TAMU.EDU> Date: 21 Feb 91 22:49:31 GMT Sender: usenet@helios.TAMU.EDU Reply-To: auvhess@auvc6.tamu.edu (David K. Hess) Followup-To: comp.unix.world Organization: Texas A&M University Lines: 21 Quick question which should get a quick answer. I am daemonizing a process using the standard steps as lifted from inetd.c. fork() close(open descriptors) open("/") dup(0) open("/dev/tty") ioctl(tty,TIOCNOTTY) I understand all these steps except the open("/") and the subsequent dup() of the resultant file descriptor. Can somebody e-mail the reasons for and effects of this step? I've looked through every manual and man page that might remotely help and came up with nothing. Thanks. Dave Hess Graduate Student Texas A&M University auvhess@auvsun1.tamu.edu Brought to you by Super Global Mega Corp .com