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. Regards RĂ¼diger
