From 7e58b7fb3b62b8aad0762631a26f606fbfd43673 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Fri, 13 Feb 2009 15:23:58 -0500 Subject: If we find the service we are done --- server/monitor/monitor.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/monitor/monitor.c b/server/monitor/monitor.c index 87f5ca730..166cf3cdd 100644 --- a/server/monitor/monitor.c +++ b/server/monitor/monitor.c @@ -301,12 +301,13 @@ static void global_checks_handler(struct event_context *ev, goto done; } - /* let's see if it is a known servicei, and try to restart it */ + /* let's see if it is a known service, and try to restart it */ for (svc = ctx->svc_list; svc; svc = svc->next) { if (svc->pid == pid) { time_t now = time(NULL); DEBUG(1, ("Service [%s] did exit\n", svc->name)); svc_try_restart(svc, now); + goto done; } } if (svc == NULL) { -- cgit