apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Justin Erenkrantz <jus...@erenkrantz.com>
Subject Re: [PATCH] Be verbose during shl_load on HP-UX
Date Wed, 28 May 2003 23:39:40 GMT
--On Wednesday, May 28, 2003 7:32 PM -0400 Garrett Rooney 
<rooneg@electricjellyfish.net> wrote:

> Well, if you feel so strongly about having the option (and it should be an
> option, turned off by default, IMO), then I suggest revising the patch such
> that it makes apr_dso_load take a flags parameter (changing the function
> interface may not be appropriate right now...  perhaps an apr_dso_load_ex or
> something), and have one of the flags indicate that verbose error reporting
> should be used.

Currently, error messages are returned in apr_dso_handle_t->errormsg when 
APR_EDSOOPEN is returned (see apr_dso_load).  It's up to the app to figure out 
what it wants to do with it (i.e. call apr_dso_error()).  All of the other DSO 
mechanisms store their error strings in here.

Is it possible for HP-UX's DSO's error to be captured in a string rather than 
forcibly sent to stderr?  That would be a much cleaner as all of the other 
Unix-based platforms already support this - so adding a flag just for HP-UX's 
BIND_VERBOSE option doesn't help as no one else would likely need it as they 
have sane mechanisms for handling this.  -- justin

View raw message