summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/globals.c
diff options
context:
space:
mode:
authorAmar Tumballi <amar@gluster.com>2011-10-13 15:23:39 +0530
committerAnand Avati <avati@redhat.com>2012-03-21 11:58:29 -0700
commitabae8a2086e71aaf193b12df90ae3fe687117c28 (patch)
tree6509a232adf59474a2685f5ad8143a0d7d0d1932 /libglusterfs/src/globals.c
parentc3bdb1d4c6c4491afdf1ba26bb0d6204270cc058 (diff)
core: enable process to return the appropriate error code
Credit of this patch goes to Avati <avati@gluster.com> as I just did a rebase to the lastest master. Change-Id: I53b2adf90fd9808433bdc35b57dad0682bc90860 BUG: 762935 Signed-off-by: Amar Tumballi <amar@gluster.com> Reviewed-on: http://review.gluster.com/579 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Jeff Darcy <jdarcy@redhat.com> Reviewed-by: Anand Avati <avati@redhat.com>
Diffstat (limited to 'libglusterfs/src/globals.c')
-rw-r--r--libglusterfs/src/globals.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libglusterfs/src/globals.c b/libglusterfs/src/globals.c
index e041ce5d6b4..64b25663595 100644
--- a/libglusterfs/src/globals.c
+++ b/libglusterfs/src/globals.c
@@ -114,6 +114,9 @@ glusterfs_ctx_init ()
INIT_LIST_HEAD (&glusterfs_ctx->mempool_list);
ret = pthread_mutex_init (&glusterfs_ctx->lock, NULL);
+ glusterfs_ctx->daemon_pipe[0] = -1;
+ glusterfs_ctx->daemon_pipe[1] = -1;
+
out:
return ret;
}