summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2009-02-13 15:23:58 -0500
committerSimo Sorce <idra@samba.org>2009-02-13 15:26:29 -0500
commit7e58b7fb3b62b8aad0762631a26f606fbfd43673 (patch)
tree61ac6a69a9bd0b2fea1fbda462823375bc1a0564
parent6806d6836053c6117a30ab8ccd171f879e73efd0 (diff)
downloadsssd-7e58b7fb3b62b8aad0762631a26f606fbfd43673.tar.gz
sssd-7e58b7fb3b62b8aad0762631a26f606fbfd43673.tar.bz2
sssd-7e58b7fb3b62b8aad0762631a26f606fbfd43673.zip
If we find the service we are done
-rw-r--r--server/monitor/monitor.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/monitor/monitor.c b/server/monitor/monitor.c
index 87f5ca73..166cf3cd 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) {