summaryrefslogtreecommitdiff
path: root/src/logind.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-06-24 23:25:28 +0200
committerLennart Poettering <lennart@poettering.net>2011-06-24 23:25:28 +0200
commit31b79c2b4a34961eefc3b3680704124d8490d105 (patch)
tree36b93e5f01b564b975c773f9fa95505dacdcf4ba /src/logind.h
parent094062918c50cd5a34f7b6510fe206bf78d7cc58 (diff)
logind: use pipe fd to detect when a session is dead
Diffstat (limited to 'src/logind.h')
-rw-r--r--src/logind.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/logind.h b/src/logind.h
index d8674e7511..d512c3ee2f 100644
--- a/src/logind.h
+++ b/src/logind.h
@@ -37,9 +37,8 @@
* recreate VTs when disallocated
* spawn user systemd
* direct client API
- * subscribe to fd HUP
* D-Bus method: AttachDevice(seat, device);
- * D-Bus method: PermitLinger(user, bool b);
+ * D-Bus method: SetLinger(user, bool b);
*
* non-local X11 server
* reboot/shutdown halt management
@@ -86,6 +85,14 @@ struct Manager {
unsigned long session_counter;
Hashmap *cgroups;
+ Hashmap *pipe_fds;
+};
+
+enum {
+ FD_UDEV,
+ FD_CONSOLE,
+ FD_BUS,
+ FD_PIPE_BASE
};
Manager *manager_new(void);