apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Orton <jor...@redhat.com>
Subject Re: trylock does not work on RH 9
Date Wed, 23 Jul 2003 09:45:50 GMT
On Wed, Jul 23, 2003 at 03:16:07AM +0200, apr@insode.de wrote:
> Hi,
> 
> I am writing an Apache 2.0 module and have problems with the mutex_trylock 
> functions.
> 
> apr_global_mutex_lock() and apr_global_mutex_unlock() work but
> apr_global_mutex_trylock() segfaults the apache2 childs on my RedHat 9 box.
> 
> Any help is welcome... is this a bug or do I have to use trylock() with 
> different arguments than lock() ?

This is an APR bug, thanks for the report.  apr_proc_mutex_trylock will
always segfault in the various Unix implementations, so
apr_global_mutex_trylock is simply not usable yet unfortunately.

joe

Mime
View raw message