summaryrefslogtreecommitdiffstats
path: root/libglusterfs
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
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')
-rw-r--r--libglusterfs/src/globals.c3
-rw-r--r--libglusterfs/src/glusterfs.h1
2 files changed, 4 insertions, 0 deletions
diff --git a/libglusterfs/src/globals.c b/libglusterfs/src/globals.c
index e041ce5d6..64b256635 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;
}
diff --git a/libglusterfs/src/glusterfs.h b/libglusterfs/src/glusterfs.h
index a3adf151b..fc9c06253 100644
--- a/libglusterfs/src/glusterfs.h
+++ b/libglusterfs/src/glusterfs.h
@@ -378,6 +378,7 @@ struct _glusterfs_ctx {
int mem_accounting; /* if value is other than 0, it
will be set */
+ int daemon_pipe[2];
};
typedef struct _glusterfs_ctx glusterfs_ctx_t;