summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorMartin Schwenke <martin@meltin.net>2009-10-22 13:03:20 +0200
committerVolker Lendecke <vl@samba.org>2010-11-02 15:59:05 +0100
commit27056d37e0a7a7f46a4765b7ea45193050caa277 (patch)
treee7fd7aff5e435893f6e44d6b65124a29dc46ca87 /source3/lib
parent4622f2e926acf0bc50237f396b3f629ccd5326ec (diff)
downloadsamba-27056d37e0a7a7f46a4765b7ea45193050caa277.tar.gz
samba-27056d37e0a7a7f46a4765b7ea45193050caa277.tar.bz2
samba-27056d37e0a7a7f46a4765b7ea45193050caa277.zip
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 <martin@meltin.net>
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/ctdbd_conn.c2
1 files changed, 1 insertions, 1 deletions
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);
}
/*