summaryrefslogtreecommitdiff
path: root/src/dmabuf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dmabuf.c')
-rw-r--r--src/dmabuf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dmabuf.c b/src/dmabuf.c
index 7b8126e..b3718be 100644
--- a/src/dmabuf.c
+++ b/src/dmabuf.c
@@ -120,7 +120,7 @@ int init_render_data(struct render_data *data)
const char *card = data->drm_node_path ? data->drm_node_path
: "/dev/dri/renderD128";
- int drm_fd = open(card, O_RDWR | O_CLOEXEC);
+ int drm_fd = open(card, O_RDWR | O_CLOEXEC | O_NOCTTY);
if (drm_fd == -1) {
wp_error("Failed to open drm fd for %s: %s", card,
strerror(errno));