diff options
author | Lennart Poettering <lennart@poettering.net> | 2011-06-28 00:26:34 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2011-06-28 00:26:34 +0200 |
commit | 21308c654dda82726f634fc695529d3af33e6fb6 (patch) | |
tree | dfd75a9348b738dad32dbb7f60d47e9947c6f8b6 | |
parent | d0a522eb312a0f6014e756d3fc066efc37fceaf7 (diff) |
logind: kill a session as soon as its pipe fd gets EOF
-rw-r--r-- | src/logind.c | 2 | ||||
-rw-r--r-- | src/logind.h | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/src/logind.c b/src/logind.c index 701ef494e8..8507c2e152 100644 --- a/src/logind.c +++ b/src/logind.c @@ -771,7 +771,7 @@ static void manager_pipe_notify_eof(Manager *m, int fd) { assert(s->pipe_fd == fd); session_unset_pipe_fd(s); - session_add_to_gc_queue(s); + session_stop(s); } static int manager_connect_bus(Manager *m) { diff --git a/src/logind.h b/src/logind.h index 5c513b4021..be8bb1d389 100644 --- a/src/logind.h +++ b/src/logind.h @@ -39,7 +39,6 @@ * direct client API * D-Bus method: AttachDevices(seat, devices[]); * D-Bus method: SetLinger(user, bool b); - * kill cgroup immediately when fd is EOF. * * non-local X11 server * reboot/shutdown halt management |