summaryrefslogtreecommitdiff
path: root/src/login/logind-session.c
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@gmail.com>2014-04-23 17:38:43 +0200
committerDavid Herrmann <dh.herrmann@gmail.com>2014-04-23 17:38:43 +0200
commit8b8fa8b80c6b306b9ca249fa3ef64e83f49efa35 (patch)
treedb454967f3db1283136b4f34167393ffee9aba86 /src/login/logind-session.c
parentd6176c6c97bf0614c2e7caaf2156bf813b39337a (diff)
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.
Diffstat (limited to 'src/login/logind-session.c')
-rw-r--r--src/login/logind-session.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/login/logind-session.c b/src/login/logind-session.c
index 83c0ffa65c..8e6f95e6cd 100644
--- a/src/login/logind-session.c
+++ b/src/login/logind-session.c
@@ -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;
}