Merge pull request #1604 from emersion/direct-session-cloexec

backend/session: open TTY with O_CLOEXEC for direct session
master
Scott Anderson 6 years ago committed by GitHub
commit 680c4c573c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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;

Loading…
Cancel
Save