| Submitter | Amar Tumballi |
|---|---|
| Date | 2010-09-09 07:32:54 |
| Message ID | <20100909073254.GA32395@gluster.com> |
| Download | mbox | patch |
| Permalink | /patch/4697/ |
| State | Accepted |
| Headers | show |
Comments
Patch
diff --git a/glusterfsd/src/glusterfsd.c b/glusterfsd/src/glusterfsd.c index e3a7a9d..36fc86a 100644 --- a/glusterfsd/src/glusterfsd.c +++ b/glusterfsd/src/glusterfsd.c @@ -1313,6 +1313,12 @@ glusterfs_process_volfp (glusterfs_ctx_t *ctx, FILE *fp) out: if (fp) fclose (fp); + + if (ret && !ctx->active) { + /* there is some error in setting up the first graph itself */ + cleanup_and_exit (0); + } + return ret; }
Signed-off-by: Amar Tumballi <amar@gluster.com> --- glusterfsd/src/glusterfsd.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-)