httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brian Havard" <>
Subject Re: cvs commit: apache-2.0/src/lib/apr/lib apr_execve.c apr_pools.c apr_tables.c
Date Wed, 24 Nov 1999 14:27:33 GMT
On Wed, 24 Nov 1999 08:03:18 -0500 (EST), Ryan Bloom wrote:

>> How about using something like the C++ method where you can register an out
>> of memory handler function (set_new_handler())? That way Apache can register
>> a handler that does the log & abort step without forcing all APR using apps
>> to have the same behaviour.
>I could live with that, presuming that the APR default is to jut return an
>error code.  If Apache wants to over-write that default, then fine.  I
>won't get to this code until after Thanksgiving, because I want to get
>everybodies reaction first.

Yeah, that's what I was thinking. The best of both worlds. No return code
checking needed and Apache decides what to do in the event of a failure.

On Wed, 24 Nov 1999 05:09:06 -0800 (PST), Greg Stein wrote:

>Yes, I suggested something similar when I talked about a flag in the
>context. In that case, the flag meant "abort if there's no memory."
>Your callback approach is much cleaner and would do the same thing.
>And yes: if there was a callback from APR, then I'd be happy as long as
>Apache's callback aborted the process.

Good, everyone's happy :)
So can we rewrite APR in C++ now? (*ducks*).

 |  Brian Havard                 |  "He is not the messiah!                   |
 |  |  He's a very naughty boy!" - Life of Brian |

View raw message