wayland-shm: Set CLOEXEC for dmabuf

Stop leaking the render node fd to child processes.
This commit is contained in:
Derek Foreman 2017-07-31 10:55:47 -05:00
parent a238272f00
commit d4e69af383
1 changed files with 1 additions and 1 deletions

View File

@ -314,7 +314,7 @@ _buffer_manager_get(void)
buffer_manager = calloc(1, sizeof(Buffer_Manager));
if (!buffer_manager) goto err_alloc;
fd = open("/dev/dri/renderD128", O_RDWR);
fd = open("/dev/dri/renderD128", O_RDWR | O_CLOEXEC);
if (fd < 0) goto err_drm;
success = _intel_buffer_manager_setup(fd);