Xref: utzoo comp.unix.wizards:22415 comp.bugs.4bsd:1569 Path: utzoo!attcan!uunet!tut.cis.ohio-state.edu!zaphod.mps.ohio-state.edu!rpi!bu.edu!snorkelwacker!bloom-beacon!bloom-beacon.mit.edu!jtkohl From: jtkohl@MIT.EDU (John T Kohl) Newsgroups: comp.unix.wizards,comp.bugs.4bsd Subject: Re: How to divorce a process from the controlling tty (was syslogd.c) Message-ID: Date: 11 Jun 90 19:32:17 GMT References: <1990Jun8.070904.7466@athena.mit.edu> <36447@sequent.UUCP> <11388@pixar.UUCP> Sender: news@athena.mit.edu (News system) Organization: MIT Project Athena Lines: 18 In-Reply-To: bp@pixar.UUCP's message of 11 Jun 90 16:48:05 GMT In article <11388@pixar.UUCP> bp@pixar.UUCP (Bruce Perens) writes: > Here's how I would divorce a process from a controlling tty. Feel > free to criticize and correct this: > ... > count = NFDS; > ... Modern Unixes have a call to tell you the # of file descriptors: count = getdtablesize(); -- John Kohl or Digital Equipment Corporation/Project Athena (The above opinions are MINE. Don't put my words in somebody else's mouth!)