mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-24 02:03:54 +03:00
login: rename session_mute_vt() to session_prepare_vt()
This function is no longer just about muteing the VT. We do all kinds of VT setup for sessions using the controller-API. Rename the function to something more appropriate.
This commit is contained in:
parent
d6176c6c97
commit
8b8fa8b80c
@ -963,7 +963,7 @@ static int session_vt_fn(sd_event_source *source, const struct signalfd_siginfo
|
||||
return 0;
|
||||
}
|
||||
|
||||
void session_mute_vt(Session *s) {
|
||||
void session_prepare_vt(Session *s) {
|
||||
int vt, r;
|
||||
struct vt_mode mode = { 0 };
|
||||
sigset_t mask;
|
||||
@ -1095,7 +1095,7 @@ int session_set_controller(Session *s, const char *sender, bool force) {
|
||||
* exits.
|
||||
* If logind crashes/restarts, we restore the controller during restart
|
||||
* or reset the VT in case it crashed/exited, too. */
|
||||
session_mute_vt(s);
|
||||
session_prepare_vt(s);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@ -170,7 +170,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_mute_vt(Session *s);
|
||||
void session_prepare_vt(Session *s);
|
||||
void session_restore_vt(Session *s);
|
||||
|
||||
bool session_is_controller(Session *s, const char *sender);
|
||||
|
Loading…
x
Reference in New Issue
Block a user