Subject: Re: Warning message: Why do I care?
To: Roland Dowdeswell <elric@imrryr.org>
From: John Franklin <franklin@elfie.org>
List: current-users
Date: 08/01/2002 14:36:36
On Thu, Aug 01, 2002 at 02:15:37PM -0400, Roland Dowdeswell wrote:
> 
> On 1028224954 seconds since the Beginning of the UNIX epoch
> "Steven M. Bellovin" wrote:
> >
> >In message <20020801135402.K2158@styx.org>, ww@styx.org writes:
> 
> >>  close(1);
> >>  fd = open("somefile", O_WRONLY);
> >>
> >>-w
> >>
> >You could use dup2().  But I suspect there's a lot of code around that 
> >does it your way.
> 
> The problem is that the relevant standards dictate that method does
> work in that way, and so programs that rely on that behaviour are
> not doing anything wrong.

If the standards say so, the standards say so.  I disagree with the
standard on this point, but I'll concede.

jf
-- 
John Franklin
franklin@elfie.org
ICBM: 35°43'56"N 78°53'27"W