diff options
author | Olivier Brunel <jjk@jjacky.com> | 2014-08-08 20:45:43 +0200 |
---|---|---|
committer | David Herrmann <dh.herrmann@gmail.com> | 2014-08-11 18:38:44 +0200 |
commit | baccf3e40bab6c0b69992ae29c396930de4660c9 (patch) | |
tree | eb8062f104b76ce7709bf4486f03cd7d15ede7f8 /src/login/logind-session.h | |
parent | 7e8185ef942de5acecfa4cda03d7d7711ddda992 (diff) |
login: set_controller should fail if prepare_vt fails
If controllers can expect logind to have "prepared" the VT (e.g. set it to
graphics mode, etc) then TakeControl() should fail if said preparation
failed (and session_restore_vt() was called).
(David: fixed up !CONFIG_VT case and errno-numbers)
Diffstat (limited to 'src/login/logind-session.h')
-rw-r--r-- | src/login/logind-session.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/login/logind-session.h b/src/login/logind-session.h index e62b76d66f..2ab31828ce 100644 --- a/src/login/logind-session.h +++ b/src/login/logind-session.h @@ -172,7 +172,7 @@ SessionClass session_class_from_string(const char *s) _pure_; const char *kill_who_to_string(KillWho k) _const_; KillWho kill_who_from_string(const char *s) _pure_; -void session_prepare_vt(Session *s); +int session_prepare_vt(Session *s); void session_restore_vt(Session *s); bool session_is_controller(Session *s, const char *sender); |