Date: Sat, 01 Mar 2003 13:51:26 +0200 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: rich AT phekda DOT freeserve DOT co DOT uk Message-Id: <2427-Sat01Mar2003135126+0200-eliz@elta.co.il> X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 1.8.9 CC: djgpp-workers AT delorie DOT com In-reply-to: <3E5C1B27.47B225B@phekda.freeserve.co.uk> (message from Richard Dawe on Wed, 26 Feb 2003 01:40:55 +0000) Subject: Re: Implementation of fchmod [PATCH] References: <3E54E663 DOT 5F32DFF7 AT phekda DOT freeserve DOT co DOT uk> <2427-Sat22Feb2003220304+0200-eliz AT is DOT elta DOT co DOT il> <3E5B6452 DOT 82F4D938 AT phekda DOT freeserve DOT co DOT uk> <7263-Tue25Feb2003211713+0200-eliz AT elta DOT co DOT il> <3E5C1B27 DOT 47B225B AT phekda DOT freeserve DOT co DOT uk> Reply-To: djgpp-workers AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > Date: Wed, 26 Feb 2003 01:40:55 +0000 > From: Richard Dawe > > > > Call isatty on the handle; if it returns zero, the handle is > > redirected. > > But can we assume file descriptors 0, 1, etc. are actually standard handles? Yes. Many programs will break beyond recognition otherwise. As an example, consider our crash traceback: it is written to file handle 2 without any tests.