diff options
Diffstat (limited to 'libglusterfs')
| -rw-r--r-- | libglusterfs/src/globals.c | 3 | ||||
| -rw-r--r-- | libglusterfs/src/glusterfs.h | 1 | 
2 files changed, 4 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;  } diff --git a/libglusterfs/src/glusterfs.h b/libglusterfs/src/glusterfs.h index a3adf151b19..fc9c062534b 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;  | 
