apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William A. Rowe, Jr." <wr...@rowe-clan.net>
Subject Re: Crash in apr_file_close() (Linux)
Date Fri, 16 Oct 2009 14:56:50 GMT
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() :)

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.


Mime
View raw message