Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!oliveb!amiga!cbmvax!jesup From: jesup@cbmvax.UUCP (Randell Jesup) Newsgroups: comp.sys.amiga.tech Subject: Re: Unix V7 functionality under (or along with) AmigaDOS? (*LONG*) Message-ID: <6465@cbmvax.UUCP> Date: 30 Mar 89 22:23:13 GMT References: <6275@cbmvax.UUCP> <0776.AA0776@julie> <0856.AA0856@julie> <6420@cbmvax.UUCP> Reply-To: jesup@cbmvax.UUCP (Randell Jesup) Organization: Commodore Technology, West Chester, PA Lines: 16 In article shadow@pawl.rpi.edu (Deven T. Corzine) writes: >> Within limits stated before: BCPL programs can't share filehandles. >>NEVER Close() the result of Output(). Don't pass it off and exit, wait until >>the other process is done with it. > >Well, you COULD have the child Close(Output()), if the parent and >child agree the child is to do so, but it is definitely a poor >programming style, and hence very strongly discouraged... but legal. No. The definition of a process is that CIS and COS (aka Input() and Output()) will remain valid (the owning CLI or WB closes them). You should never Close the result of Input() or Output(). NEVER. It IS illegal. -- Randell Jesup, Commodore Engineering {uunet|rutgers|allegra}!cbmvax!jesup