Re: [Mesa-dev] [PATCH] Don't manually close fds for queryImage. drm uses CLOEXEC

2016-04-14 Thread Daniel Stone
Hi, On 14 April 2016 at 13:19, Chokshi, Mitul wrote: > If create_wl_buffer() closes the file descriptor returned by > dri2_dpy->image->queryImage then OS hands out the same file > descriptor number to other process which then experiences error > when fd is closed due to CLOEXEC. I don't really u

[Mesa-dev] [PATCH] Don't manually close fds for queryImage. drm uses CLOEXEC

2016-04-14 Thread Chokshi, Mitul
If create_wl_buffer() closes the file descriptor returned by dri2_dpy->image->queryImage then OS hands out the same file descriptor number to other process which then experiences error when fd is closed due to CLOEXEC. Signed-off-by: Mitul Chokshi --- src/egl/drivers/dri2/platform_wayland.c | 2