From 39c3878e6c104d6fd1387e1af3862728f4b8163a Mon Sep 17 00:00:00 2001 From: Tollef Fog Heen Date: Sat, 30 Jun 2012 08:00:35 +0200 Subject: [PATCH] Avoid sending sigterm to session leader --- src/login/logind-session.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/login/logind-session.c b/src/login/logind-session.c index af9c12dc..084c51f7 100644 --- a/src/login/logind-session.c +++ b/src/login/logind-session.c @@ -627,7 +627,7 @@ static int session_terminate_cgroup(Session *s) { r = manager_get_session_by_pid(s->manager, s->leader, &t); if (r > 0 && t == s) { - kill(s->leader, SIGTERM); /* for normal processes */ + /*kill(s->leader, SIGTERM); */ /* for normal processes */ kill(s->leader, SIGHUP); /* for shells */ kill(s->leader, SIGCONT); /* in case they are stopped */ } -- 2.39.5