[SCM] CTDB repository - branch master updated -
ctdb-1.0.65-25-g993f626
Ronnie Sahlberg
sahlberg at samba.org
Wed Dec 10 00:19:40 GMT 2008
The branch, master has been updated
via 993f626e603b9bbc02942bb55096d63b9a4f456b (commit)
from 39c77371a2f995025a584691fe61af12dc6ed5d7 (commit)
http://gitweb.samba.org/?p=sahlberg/ctdb.git;a=shortlog;h=master
- Log -----------------------------------------------------------------
commit 993f626e603b9bbc02942bb55096d63b9a4f456b
Author: root <root at test1n1.VSOFS1.COM>
Date: Wed Dec 10 11:49:51 2008 +1100
make sure we return an errorcode when the ctdb command has hung and is timeodout by the -T <timeout> setting
-----------------------------------------------------------------------
Summary of changes:
tools/ctdb.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
Changeset truncated at 500 lines:
diff --git a/tools/ctdb.c b/tools/ctdb.c
index bb663a6..1f0c331 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);
}
/*
--
CTDB repository
More information about the samba-cvs
mailing list