Hi.
well, I'm not sure that this patch have the behavior that is it hope. You have 
the word.
But when monitor_quit is call and the process not exists, this remains in loop 
and not allow signal.
I try it with Monitor Task and nothing. 
I had to reboot                                           
From 09edb3e5e82292d07b7f79b89f40b4963931ec89 Mon Sep 17 00:00:00 2001
From: "Ariel O. Barria" <olivare...@hotmail.com>
Date: Wed, 21 Nov 2012 14:36:15 -0500
Subject: [PATCH] monitor quit when not exists no process no stops

---
 src/monitor/monitor.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/monitor/monitor.c b/src/monitor/monitor.c
index 40f1f56c0646965e8813356971f8956eac5a7028..b2446885c1de48f661490f41d6d5b0ae0a549d18 100644
--- a/src/monitor/monitor.c
+++ b/src/monitor/monitor.c
@@ -1401,6 +1401,9 @@ static void monitor_quit(struct mt_ctx *mt_ctx, int ret)
                                   error, strerror(error), svc->name));
                         /* Forcibly kill this child */
                         kill(svc->pid, SIGKILL);
+                        if (error == ESRCH || error == ECHILD) {
+                            killed = true;
+                        }
                         break;
                     }
                 } else if (pid != 0) {
-- 
1.7.11.7

_______________________________________________
sssd-devel mailing list
sssd-devel@lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/sssd-devel

Reply via email to