summaryrefslogtreecommitdiff
path: root/src/logind-session.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-06-29 00:06:04 +0200
committerLennart Poettering <lennart@poettering.net>2011-06-29 00:06:04 +0200
commit932e3ee76ea0a9d28902f694ad1873e37532da35 (patch)
tree5e6017ffe793879918dd60bbb7de860fd72054e7 /src/logind-session.h
parentfde78a3ac01db57a384e5936bf2c033dcdeae494 (diff)
logind: use named pipes instead of fifos to keep track of sessions so that we can reconnect later
Diffstat (limited to 'src/logind-session.h')
-rw-r--r--src/logind-session.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/logind-session.h b/src/logind-session.h
index 72f85caaaf..d0cf0ed886 100644
--- a/src/logind-session.h
+++ b/src/logind-session.h
@@ -65,7 +65,8 @@ struct Session {
pid_t leader;
uint32_t audit_id;
- int pipe_fd;
+ int fifo_fd;
+ char *fifo_path;
char *cgroup_path;
char **controllers, **reset_controllers;
@@ -91,8 +92,9 @@ int session_activate(Session *s);
bool session_is_active(Session *s);
int session_get_idle_hint(Session *s, dual_timestamp *t);
void session_set_idle_hint(Session *s, bool b);
-int session_set_pipe_fd(Session *s, int fd);
-void session_unset_pipe_fd(Session *s);
+int session_open_fifo(Session *s);
+int session_create_fifo(Session *s);
+void session_remove_fifo(Session *s);
int session_start(Session *s);
int session_stop(Session *s);
int session_save(Session *s);