aboutsummaryrefslogtreecommitdiff
path: root/include/seat.h
diff options
context:
space:
mode:
authorKenny Levinsen <kl@kl.wtf>2020-08-02 20:21:19 +0200
committerKenny Levinsen <kl@kl.wtf>2020-08-02 21:46:10 +0200
commitb751481e5c0bed1b81b7c769923e772e9fd84e9d (patch)
treea08c88eb9b3755afb9b9ba70535ef98944de9301 /include/seat.h
parentb731b18e0a086e65aa25ed2a5e53488076f5ad37 (diff)
seat: Open/close tty on activation/deactivation
The VT and KD ioctl's are picky about the tty fd used. In order to satisfy these, and to improve state cleanup, we now only and store the current tty when opening a client, and use this fd to perform teardown later. The presence of the fd is also used to signal that teardown is needed.
Diffstat (limited to 'include/seat.h')
-rw-r--r--include/seat.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/seat.h b/include/seat.h
index e0d3533..5a6c273 100644
--- a/include/seat.h
+++ b/include/seat.h
@@ -32,6 +32,7 @@ struct seat {
bool vt_bound;
bool vt_pending_ack;
int next_vt;
+ int curttyfd;
};
struct seat *seat_create(const char *name, bool vt_bound);