diff options
Diffstat (limited to 'libglusterfs/src/ctx.c')
| -rw-r--r-- | libglusterfs/src/ctx.c | 3 | 
1 files changed, 2 insertions, 1 deletions
diff --git a/libglusterfs/src/ctx.c b/libglusterfs/src/ctx.c index c70d97bc5d4..2aa14654b9e 100644 --- a/libglusterfs/src/ctx.c +++ b/libglusterfs/src/ctx.c @@ -35,7 +35,8 @@ glusterfs_ctx_new ()  	ctx->daemon_pipe[0] = -1;  	ctx->daemon_pipe[1] = -1; -	ret = pthread_mutex_init (&ctx->lock, NULL); +        /* lock is never destroyed! */ +	ret = LOCK_INIT (&ctx->lock);  	if (ret) {  		free (ctx);  		ctx = NULL;  | 
