Path: utzoo!attcan!uunet!ginosko!rex!uflorida!haven!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn) Newsgroups: comp.bugs.4bsd Subject: Re: rshd depends on risky assumption Message-ID: <10808@smoke.BRL.MIL> Date: 24 Aug 89 17:29:23 GMT References: <10803@smoke.BRL.MIL> Reply-To: gwyn@brl.arpa (Doug Gwyn) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 9 In article karl@triceratops.cis.ohio-state.edu (Karl Kleinpaste) writes: -gwyn@smoke.brl.mil writes: - The 4.3BSD rshd (normally in its child branch) unconditionally - closes an FD named "f" in the source code without checking whether - f = 0, 1, or 2. -It doesn't have to do so. `f' is passed into doit() from main() as a -constant 0. If it were, then the code would be horribly wrong!