httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simone Caruso <i...@simonecaruso.com>
Subject Re: Help with apr mutex
Date Mon, 28 Feb 2011 18:15:45 GMT
On 28/02/2011 18:35, Jim Jagielski wrote:
> Why not check the return status of the lock and unlock calls??
>
Ehm... i'm an idiot...

i create the lock in this way:
module_post_config(apr_pool_t *p, apr_pool_t *plog, apr_pool_t *ptemp, server_rec *s)
{
	lock = ap_server_root_relative(p, "mymod.lck");
	result = apr_global_mutex_create(&mtx, lock, APR_LOCK_DEFAULT, p);
	if(result != APR_SUCCESS)
	...
}

apr_global_mutex_create returns APR_SUCCESS, but apr_global_mutex_lock returns "Permission
denied",
maybe the lock is created wrong permissions ??

-- 
Simone Caruso
IT Consultant

Mime
View raw message