diff options
author | Lennart Poettering <lennart@poettering.net> | 2011-06-29 00:06:04 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2011-06-29 00:06:04 +0200 |
commit | 932e3ee76ea0a9d28902f694ad1873e37532da35 (patch) | |
tree | 5e6017ffe793879918dd60bbb7de860fd72054e7 /src/logind-session.h | |
parent | fde78a3ac01db57a384e5936bf2c033dcdeae494 (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.h | 8 |
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); |