summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2017-07-31 10:55:47 -0500
committerDerek Foreman <derekf@osg.samsung.com>2017-07-31 10:55:47 -0500
commitd4e69af38347db96190cd126198a146057b9a420 (patch)
tree417302aea02c93ff48818fcec2d771b869310f0c
parenta238272f0067f3664dfc0178baecea57a234b15c (diff)
wayland-shm: Set CLOEXEC for dmabuf
Stop leaking the render node fd to child processes.
-rw-r--r--src/modules/evas/engines/wayland_shm/evas_dmabuf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/evas/engines/wayland_shm/evas_dmabuf.c b/src/modules/evas/engines/wayland_shm/evas_dmabuf.c
index 63e54a4999..ca253ce609 100644
--- a/src/modules/evas/engines/wayland_shm/evas_dmabuf.c
+++ b/src/modules/evas/engines/wayland_shm/evas_dmabuf.c
@@ -314,7 +314,7 @@ _buffer_manager_get(void)
314 buffer_manager = calloc(1, sizeof(Buffer_Manager)); 314 buffer_manager = calloc(1, sizeof(Buffer_Manager));
315 if (!buffer_manager) goto err_alloc; 315 if (!buffer_manager) goto err_alloc;
316 316
317 fd = open("/dev/dri/renderD128", O_RDWR); 317 fd = open("/dev/dri/renderD128", O_RDWR | O_CLOEXEC);
318 if (fd < 0) goto err_drm; 318 if (fd < 0) goto err_drm;
319 319
320 success = _intel_buffer_manager_setup(fd); 320 success = _intel_buffer_manager_setup(fd);