diff options
author | emersion <contact@emersion.fr> | 2019-03-05 19:19:13 +0100 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2019-03-05 19:19:13 +0100 |
commit | d02548d87a4a4e5a2e049d63fb6d08867239bfc5 (patch) | |
tree | 5aac898ad1289f4c5d7a0b57cb435bbaaa8f52a5 /backend/session | |
parent | 30d3426164b56e7340c33ae65baa66530b8e31a8 (diff) |
backend/session: open TTY with O_CLOEXEC for direct session
Diffstat (limited to 'backend/session')
-rw-r--r-- | backend/session/direct.c | 2 |
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; |