From: cgf AT cygnus DOT com (Christopher Faylor) Subject: Re: B20 patch [was Re: Error in dup???] 14 Nov 1998 19:21:17 -0800 Message-ID: <19981114221347.A26754.cygnus.cygwin32.developers@cygnus.com> References: <19981114041054 DOT 582 DOT rocketmail AT send1b DOT yahoomail DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii To: Corinna Vinschen , cygwin32-developers AT cygnus DOT com On Sun, Nov 15, 1998 at 03:57:52AM +0100, Corinna Vinschen wrote: >your patch fixes the problem, indeed. Thank you. > >Would you be so kind, to explain, _why_ first_fd_for_open is >initialized to 3? Because I saw no problem, when I initialized >it to 0 (anything works fine!), I haven't understand it's sense. It is initialized to 3 so that opens (like the open of utmp, for instance) that occur prior to stdin/stdout/stderr being established do not become stdin/stdout/stderr. cgf