From baccf3e40bab6c0b69992ae29c396930de4660c9 Mon Sep 17 00:00:00 2001 From: Olivier Brunel Date: Fri, 8 Aug 2014 20:45:43 +0200 Subject: 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) --- src/login/logind-session.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/login/logind-session.h') 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); -- cgit v1.2.3-54-g00ecf