apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Orton <jor...@redhat.com>
Subject Re: Crash in apr_file_close() (Linux)
Date Fri, 16 Oct 2009 09:21:59 GMT
On Fri, Oct 16, 2009 at 11:17:17AM +0200, Mladen Turk wrote:
> each invocation to apr_file_open_stdout creates a new apr_file_t so
> each fd->filedes has a value of STDOUT_FILENO.
> This is the same as calling:
> close(1);
> close(1);

Oh, good point.  This is rather horrible :(.  I'm not sure what can be 
done about it, we can't change apr_file_open_stdout() to do a dup() 
internally, since that would break existing apps.

Regards, Joe

View raw message