From 993f626e603b9bbc02942bb55096d63b9a4f456b Mon Sep 17 00:00:00 2001 From: root Date: Wed, 10 Dec 2008 11:49:51 +1100 Subject: [PATCH] make sure we return an errorcode when the ctdb command has hung and is timeodout by the -T setting --- tools/ctdb.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/ctdb.c b/tools/ctdb.c index bb663a67..1f0c3312 100644 --- a/tools/ctdb.c +++ b/tools/ctdb.c @@ -31,6 +31,8 @@ #include "../common/rb_tree.h" #include "db_wrap.h" +#define ERR_TIMEOUT 20 + static void usage(void); static struct { @@ -2644,7 +2646,7 @@ static void usage(void) static void ctdb_alarm(int sig) { printf("Maximum runtime exceeded - exiting\n"); - _exit(0); + _exit(ERR_TIMEOUT); } /* -- 2.34.1