Subject: Re: Warning message: Why do I care?
To: Steven M. Bellovin <smb@research.att.com>
From: Roland Dowdeswell <elric@imrryr.org>
List: current-users
Date: 08/01/2002 14:15:37
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.

--
    Roland Dowdeswell                      http://www.Imrryr.ORG/~elric/