summaryrefslogtreecommitdiffstats
path: root/server/monitor
diff options
context:
space:
mode:
authorSimo Sorce <ssorce@redhat.com>2009-04-13 17:10:04 -0400
committerSimo Sorce <ssorce@redhat.com>2009-04-13 18:26:21 -0400
commit7ac324e0b94f1b27b6e66ae4bfd58df202c00e48 (patch)
tree96cdce563716593e601bea48bb603bd939a50526 /server/monitor
parentacd073a5e86a6c277c2058d28e506f37a5934736 (diff)
downloadsssd-7ac324e0b94f1b27b6e66ae4bfd58df202c00e48.tar.gz
sssd-7ac324e0b94f1b27b6e66ae4bfd58df202c00e48.tar.xz
sssd-7ac324e0b94f1b27b6e66ae4bfd58df202c00e48.zip
Fix a couple of segfaults and timeout checks
Diffstat (limited to 'server/monitor')
-rw-r--r--server/monitor/monitor.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/server/monitor/monitor.c b/server/monitor/monitor.c
index 168112242..69640b997 100644
--- a/server/monitor/monitor.c
+++ b/server/monitor/monitor.c
@@ -276,8 +276,10 @@ static void tasks_check_handler(struct tevent_context *ev,
}
if (svc->last_pong != 0) {
- if ((now - svc->last_pong) > 30) { /* TODO: get val from config */
+ if ((now - svc->last_pong) > (svc->ping_time * 3)) {
/* too long since we last heard of this process */
+ DEBUG(1, ("Killing service [%s], not responding to pings!\n",
+ svc->name));
monitor_kill_service(svc);
process_alive = false;
}