delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/1998/11/14/19:21:17

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
To: Corinna Vinschen <corinna DOT vinschen AT cityweb DOT de>,
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019