diff options
Diffstat (limited to 'libglusterfs/src/ctx.c')
-rw-r--r-- | libglusterfs/src/ctx.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libglusterfs/src/ctx.c b/libglusterfs/src/ctx.c index 01489fbe0e4..0082601d466 100644 --- a/libglusterfs/src/ctx.c +++ b/libglusterfs/src/ctx.c @@ -34,6 +34,9 @@ glusterfs_ctx_new () INIT_LIST_HEAD (&ctx->graphs); INIT_LIST_HEAD (&ctx->mempool_list); + ctx->daemon_pipe[0] = -1; + ctx->daemon_pipe[1] = -1; + ret = pthread_mutex_init (&ctx->lock, NULL); if (ret) { free (ctx); |