From 6faa7618225f6e5e8e43bf04dae05929c3c6453f Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Thu, 9 Sep 2010 02:02:54 +0000 Subject: glusterfsd: first time errors in volume file should exit the process Signed-off-by: Amar Tumballi Signed-off-by: Vijay Bellur BUG: 1551 (glusterfs process doesn't exit when init fails) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1551 --- glusterfsd/src/glusterfsd.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'glusterfsd') 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; } -- cgit