summaryrefslogtreecommitdiffstats
path: root/glusterfsd
diff options
context:
space:
mode:
Diffstat (limited to 'glusterfsd')
-rw-r--r--glusterfsd/src/glusterfsd.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/glusterfsd/src/glusterfsd.c b/glusterfsd/src/glusterfsd.c
index e3a7a9d2aa6..36fc86af4c1 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;
}