apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bill Stoddard <b...@wstoddard.com>
Subject Re: cvs commit: apr/locks/unix proc_mutex.c
Date Thu, 07 Aug 2003 13:28:25 GMT
wrowe@apache.org wrote:

> wrowe       2003/08/06 16:54:31
> 
>   Modified:    locks/unix proc_mutex.c
>   Log:
>     Introduce the proc_mutex_no_tryacquire stub, returning APR_ENOTIMPL,
>     for all unimplemented trylock vectors.  Prevents us from simply
>     segfaulting when a given proc_mutex style does not support trylock.
>   
What's wrong with segfaulting? Better to segfault and know unambiguously 
that the function is broken than forget to check a return code and think 
the function is fine?  My .02. You're call.

Bill


Mime
View raw message