summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2009-12-16 15:48:59 -0500
committerStephen Gallagher <sgallagh@redhat.com>2009-12-17 16:40:32 -0500
commitb8fdafa3b553592a683b8eb657d8a7bdb129673e (patch)
treeb3743665664de072b9b865aac29a6339ffbe14b7 /server
parent75a9f18ad8ac6e885ac34cdeebc4d8f8734713f8 (diff)
downloadsssd-b8fdafa3b553592a683b8eb657d8a7bdb129673e.tar.gz
sssd-b8fdafa3b553592a683b8eb657d8a7bdb129673e.tar.bz2
sssd-b8fdafa3b553592a683b8eb657d8a7bdb129673e.zip
Fix tight-loop in monitor part 2
The first fix only fixed tight loops caused by setting 'timeout=0' in services. This patch also fixes it for domains.
Diffstat (limited to 'server')
-rw-r--r--server/monitor/monitor.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/server/monitor/monitor.c b/server/monitor/monitor.c
index 30df2cb9..b3174bda 100644
--- a/server/monitor/monitor.c
+++ b/server/monitor/monitor.c
@@ -1149,6 +1149,11 @@ static int get_provider_config(struct mt_ctx *ctx, const char *name,
return ret;
}
+ /* 'timeout = 0' should be translated to the default */
+ if (svc->ping_time == 0) {
+ svc->ping_time = MONITOR_DEF_PING_TIME;
+ }
+
talloc_free(path);
/* if no provider is present do not run the domain */