diff options
author | Scott Anderson <ascent12@hotmail.com> | 2019-03-05 21:03:23 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-05 21:03:23 +0000 |
commit | 680c4c573c1de67446c392a7ab59cf97f72a6604 (patch) | |
tree | 5aac898ad1289f4c5d7a0b57cb435bbaaa8f52a5 /backend | |
parent | 30d3426164b56e7340c33ae65baa66530b8e31a8 (diff) | |
parent | d02548d87a4a4e5a2e049d63fb6d08867239bfc5 (diff) |
Merge pull request #1604 from emersion/direct-session-cloexec
backend/session: open TTY with O_CLOEXEC for direct session
Diffstat (limited to 'backend')
-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; |