Daemonizing question...
David K. Hess
auvhess at auvc6.tamu.edu
Fri Feb 22 09:49:31 AEST 1991
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 at auvsun1.tamu.edu
More information about the Comp.unix.wizards
mailing list