From b6f68af13cadcbbfefd38cf8ff9a46553576f3af Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 27 Jun 2011 23:06:49 +0200 Subject: [PATCH] logind: when the leader of a session exited, don't fail --- src/logind-session.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/logind-session.c b/src/logind-session.c index cbde8105..705b1e41 100644 --- a/src/logind-session.c +++ b/src/logind-session.c @@ -408,9 +408,11 @@ static int session_create_one_group(Session *s, const char *controller, const ch assert(controller); assert(path); - if (s->leader > 0) + if (s->leader > 0) { r = cg_create_and_attach(controller, path, s->leader); - else + if (r < 0) + r = cg_create(controller, path); + } else r = cg_create(controller, path); if (r < 0) -- 2.39.5