aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKenny Levinsen <kl@kl.wtf>2021-04-23 00:17:19 +0200
committerKenny Levinsen <kl@kl.wtf>2021-09-02 20:02:55 +0200
commitdf3f307b8e013814384723371dbfc549542a3a8f (patch)
treea42ad49d5f80bbc6babe3ebf41ef92e8a55e1e03 /include
parent15b0972bd3b8dbd1dae16ab3eb31a1026a63d17e (diff)
seat: Avoid holding a tty fd
The kernel Secure Attention Key killer, triggered by SysRq+k, kills all processes that hold an fd referencing the tty. To avoid its attention, we stop storing the fd for the currently active VT in seat state. This has the added benefit of simplifying state a bit.
Diffstat (limited to 'include')
-rw-r--r--include/seat.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/seat.h b/include/seat.h
index fa5873c..cc243b6 100644
--- a/include/seat.h
+++ b/include/seat.h
@@ -33,7 +33,6 @@ struct seat {
struct client *next_client;
bool vt_bound;
- int cur_ttyfd;
int cur_vt;
int session_cnt;
};