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

Reply via email to