Doug MacEachern <[EMAIL PROTECTED]> writes: > below is a complete patch to implement apr_dso_handle_close() > the only cleanup that saved into apr_dso_handle_t was os390: > dso->failing_errno = errno; > which is pointless since that value is returned by the function and > nothing was checking it anyways.
the reason it is saved is because of the APR interface for getting an error string from a dso load error... you don't pass in the system-specific error value (e.g., errno on Unix) but instead you pass in the apr DSO handle... since strerror() is allowed to overlay the buffer containing the error string, we don't simply save the strerror() result but instead save the errno... as for why the APR interface is designed that way: some platforms have additional information available (beyond any sort of errno-like numeric value)... -- Jeff Trawick | [EMAIL PROTECTED] | PGP public key at web site: http://www.geocities.com/SiliconValley/Park/9289/ Born in Roswell... married an alien...