apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ruediger Pluem <rpl...@apache.org>
Subject Re: Corrected: global_mutex on Solaris 10, does it actually work?
Date Fri, 03 Oct 2008 20:16:41 GMT

On 10/03/2008 09:39 PM, Tim Bray wrote:
> Correcting two errors in my original post, why don't I just copy & paste?
> So, there's this file I want to update, suppose its name is in the
> variable "filename", so I go
>      status = apr_global_mutex_create(&mutex, filename,  APR_LOCK_DEFAULT,
>                      pool);
> And on Solaris 10, this fails with EEXIST, i.e. strerror says "File
> exists".  (This doesn't happen on OS X).  Well, yeah, it exists, I

This maybe because the default locking mechanism on OS X is different from the
one on Solaris. AFAICR Solaris has fcntl as default mechanism.
The question is: Why do you create this file beforehand? If a file needs to be
created apr_global_mutex_create will do this for you.



View raw message