]> err.no Git - systemd/commitdiff
logind: kill a session as soon as its pipe fd gets EOF
authorLennart Poettering <lennart@poettering.net>
Mon, 27 Jun 2011 22:26:34 +0000 (00:26 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 27 Jun 2011 22:26:34 +0000 (00:26 +0200)
src/logind.c
src/logind.h

index 701ef494e8c84dbc1f80d5ab19cca353ad346762..8507c2e152a50f05b64b6f395fd2fd26764e3374 100644 (file)
@@ -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) {
index 5c513b4021028c2366e3f6d490c61ea428091114..be8bb1d389a37b033f95cee088835856a5ba0b62 100644 (file)
@@ -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