aboutsummaryrefslogtreecommitdiff
path: root/backend/session/direct.c
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2019-03-05 19:19:13 +0100
committeremersion <contact@emersion.fr>2019-03-05 19:19:13 +0100
commitd02548d87a4a4e5a2e049d63fb6d08867239bfc5 (patch)
tree5aac898ad1289f4c5d7a0b57cb435bbaaa8f52a5 /backend/session/direct.c
parent30d3426164b56e7340c33ae65baa66530b8e31a8 (diff)
backend/session: open TTY with O_CLOEXEC for direct session
Diffstat (limited to 'backend/session/direct.c')
-rw-r--r--backend/session/direct.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/session/direct.c b/backend/session/direct.c
index 0912cd58..7225bff0 100644
--- a/backend/session/direct.c
+++ b/backend/session/direct.c
@@ -155,7 +155,7 @@ static int vt_handler(int signo, void *data) {
}
static bool setup_tty(struct direct_session *session, struct wl_display *display) {
- int fd = open("/dev/tty", O_RDWR);
+ int fd = open("/dev/tty", O_RDWR | O_CLOEXEC);
if (fd == -1) {
wlr_log_errno(WLR_ERROR, "Cannot open /dev/tty");
return false;