apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Jagielski <...@jaguNET.com>
Subject Re: Accept mutex
Date Fri, 22 Jun 2001 15:15:46 GMT
Jeff Trawick wrote:
> 
> I think I'd rather see it fail.
> 
> If an app wants to back down to the default without informing the user
> that they picked an invalid mechanism then it is just an extra couple
> of lines.
> 
> rv = apr_lock_create(aaa, APR_MUTEX_SYSVSEM, bbb);
> if (APR_STATUS_IS_ENOTIMPL(rv)) {
>     rv = apr_lock_create(aaa, APR_MUTEX_DEFAULT, bbb);
> }
> if (rv != APR_SUCCESS) {
>     /* handle failure to create a lock */
> }
> 

Yeah, that's what I think should happen. If the user picks an
unsupported mutex, Apache should pick the default and pop a
message to error log.
-- 
===========================================================================
   Jim Jagielski   [|]   jim@jaguNET.com   [|]   http://www.jaguNET.com/
                    "It's *good* to be the King."

Mime
View raw message