Article View: comp.bugs.4bsd
Article #66Re: rshd depends on risky assumption
From: Doug Gwyn
Date: Thu, 24 Aug 1989 17:29
Date: Thu, 24 Aug 1989 17:29
9 lines
892 bytes
892 bytes
In article <KARL.89Aug23121144@triceratops.cis.ohio-state.edu> 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!
Technical Details
Message-ID:
<10808@smoke.BRL.MIL>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!ginosko!rex!uflorida!haven!adm!smoke!gwynReferences:
<10803@smoke.BRL.MIL> <KARL.89Aug23121144@triceratops.cis.ohio-state.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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> <KARL.89Aug23121144@triceratops.cis.ohio-state.edu> Reply-To: gwyn@brl.arpa (Doug Gwyn) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 9