From df3f307b8e013814384723371dbfc549542a3a8f Mon Sep 17 00:00:00 2001 From: Kenny Levinsen Date: Fri, 23 Apr 2021 00:17:19 +0200 Subject: 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. --- include/seat.h | 1 - 1 file changed, 1 deletion(-) (limited to 'include') 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; }; -- cgit v1.2.3