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 16:08:27 GMT
On Fri, Oct 16, 2009 at 09:56:50AM -0500, William Rowe wrote:
> Mladen Turk wrote:
> > 
> > What 99% users would need is apr_file_attach_std* set of functions
> > giving the apr_file_t capable API without destroying the system
> > std streams.
> > 
> > And we should probably protect the sigleton apr_file_open_std*
> > against multiple invocations, cause the always acts upon a
> > singleton std stream object.
> 
> We already have it.
> 
> Simply don't call close() :)

Yeah, I think this is a reasonable API constraint.

> Just check if apr is registering closure of these streams and perhaps ensure
> they are not closed at all if they are not overridden, certainly by apr 2.0.

APR already does not register a cleanup for the stdio streams opened via 
apr_file_open_std*.

Regards, Joe

Mime
View raw message