apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yuri V. Vishnevskiy" <yuri.vishnevs...@gmail.com>
Subject Re: Crash in apr_file_close() (Linux)
Date Fri, 16 Oct 2009 16:02:40 GMT
>> No doubt. Then how should I to use std* after apr_terminate()?
>
> Once you call apr_terminate(), all bets are off if you use such posix  
> entities
> of apr objects.  If apr_terminate() is closing the system-provided  
> stdin/out/err,
> that is something we can fix either in 1.x (if it is inconsistent/ill  
> defined)
> or 2.0 for certain.

Sorry, I thought that apr_terminate() closes everything (including opened  
std*) during clean-up.
I've checked and found that fprintf(stdout, ) does not work only after  
explicit apr_file_close call.
Ok, I should not use apr_file_close in such case.

Regards,
Yura

Mime
View raw message