You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apr.apache.org by Jeff Trawick <tr...@attglobal.net> on 2003/02/07 14:04:13 UTC

[PATCH] allow apr_proc_create() to return failure on Unix just like on other platforms

(if the app wants to burn the cycles, that is)

With a new attribute set, apr_proc_create() will check for some common 
problems prior to forking.  This enables the caller to handle errors 
more gracefully with no funky code.

I have half a mind to make this attribute set by default with APR 1.0 
and let apps that run apr_proc_create() constantly and don't want the 
extra overhead (e.g., mod_cgi) turn it off if they want.

Comments?

Better name for the attribute than apr_procattr_error_check_set() pretty 
please?

Re: [PATCH] allow apr_proc_create() to return failure on Unix just like on other platforms

Posted by Justin Erenkrantz <ju...@erenkrantz.com>.
--On Friday, February 7, 2003 8:04 AM -0500 Jeff Trawick 
<tr...@attglobal.net> wrote:

> I have half a mind to make this attribute set by default with APR
> 1.0 and let apps that run apr_proc_create() constantly and don't
> want the extra overhead (e.g., mod_cgi) turn it off if they want.

I'd rather not turn APR into a nanny by default.  -0 for making these 
sort of checks the default.  Those applications that want it can set 
the procattr flag.  -- justin