Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/3/84; site maynard.UUCP Path: utzoo!watmath!clyde!burl!ulysses!bellcore!decvax!genrad!panda!talcott!wjh12!maynard!campbell From: campbell@maynard.UUCP (Larry Campbell) Newsgroups: net.unix-wizards Subject: close oddness in condevs.c Message-ID: <248@maynard.UUCP> Date: Sun, 2-Feb-86 21:49:19 EST Article-I.D.: maynard.248 Posted: Sun Feb 2 21:49:19 1986 Date-Received: Wed, 5-Feb-86 01:26:35 EST Distribution: net Organization: The Boston Software Works Inc., Maynard, MA Lines: 18 In the code for many (but not all) of the dialers supported by condevs.c (BSD 4.2 version) the descriptor for the dialer is closed this way: if (dh > 2) close(dh); Why? It looks like it's trying to avoid stepping on std{in,out,err}, but I don't see how the dialer descripter could ever actually refer to std{in,out,err}. Interestingly, some routines do what I would expect: if (dh >= 0) close(dh); What gives? -- Larry Campbell The Boston Software Works, Inc. ARPA: maynard.UUCP:campbell@harvard.ARPA 120 Fulton Street UUCP: {harvard,cbosgd}!wjh12!maynard!campbell Boston MA 02109