From 27056d37e0a7a7f46a4765b7ea45193050caa277 Mon Sep 17 00:00:00 2001 From: Martin Schwenke Date: Thu, 22 Oct 2009 13:03:20 +0200 Subject: cluster_fatal() exit code should not indicate success. cluster_fatal() logs a fatal event and then exits with 0. This seems wrong. Sometimes command like "net" use this code and return incorrect empty output but then exit with 0. This simply changes the exit code to 1. Signed-off-by: Martin Schwenke --- source3/lib/ctdbd_conn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3') diff --git a/source3/lib/ctdbd_conn.c b/source3/lib/ctdbd_conn.c index f8d6245d8a..4a521ca390 100644 --- a/source3/lib/ctdbd_conn.c +++ b/source3/lib/ctdbd_conn.c @@ -58,7 +58,7 @@ static void cluster_fatal(const char *why) a core file. We need to release this process id immediately so that someone else can take over without getting sharing violations */ - _exit(0); + _exit(1); } /* -- cgit