Tim Bray
Fri, 03 Oct 2008 11:51:17 -0700
status = apr_global_mutex_create(&mutex, mutex_file, 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
want to update it, that's what the mutex is for, sigh. So I created
another filename called
mutex_file = apr_pstrcat(pool, filename, ".mutex");and locked that, which worked until the first time another process wanted to wait on the mutex, and it couldn't create the mutex to wait on it because the file existed. So, I'm confused... how can I get an apr_global_mutex_t to wait on in this scenario?
Pardon the stupidity. -T