From abae8a2086e71aaf193b12df90ae3fe687117c28 Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Thu, 13 Oct 2011 15:23:39 +0530 Subject: core: enable process to return the appropriate error code Credit of this patch goes to Avati as I just did a rebase to the lastest master. Change-Id: I53b2adf90fd9808433bdc35b57dad0682bc90860 BUG: 762935 Signed-off-by: Amar Tumballi Reviewed-on: http://review.gluster.com/579 Tested-by: Gluster Build System Reviewed-by: Jeff Darcy Reviewed-by: Anand Avati --- libglusterfs/src/globals.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libglusterfs/src/globals.c') 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; } -- cgit