mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
if no timeout at all is specified to the ctdb tool, neither using -T nor by setting CGTDB_TIMEOUT, then use 120 seconds as a default timepout before the ctdb command will exit with an error.
(This used to be ctdb commit d8d21884736a9610d48cf532e1c6778e511fb7a8)
This commit is contained in:
parent
2d57599595
commit
486bdd8ca1
@ -3487,12 +3487,14 @@ int main(int argc, const char *argv[])
|
||||
ctdb_timeout = getenv("CTDB_TIMEOUT");
|
||||
if (ctdb_timeout != NULL) {
|
||||
options.maxruntime = strtoul(ctdb_timeout, NULL, 0);
|
||||
} else {
|
||||
/* default timeout is 120 seconds */
|
||||
options.maxruntime = 120;
|
||||
}
|
||||
}
|
||||
if (options.maxruntime != 0) {
|
||||
signal(SIGALRM, ctdb_alarm);
|
||||
alarm(options.maxruntime);
|
||||
}
|
||||
|
||||
signal(SIGALRM, ctdb_alarm);
|
||||
alarm(options.maxruntime);
|
||||
|
||||
/* setup the node number to contact */
|
||||
if (nodestring != NULL) {
|
||||
|
Loading…
Reference in New Issue
Block a user