Set close on exec flag FD_CLOEXEC
authorDavid Fries <David@Fries.net>
Sat, 10 Dec 2011 17:28:45 +0000 (11:28 -0600)
committerDave Airlie <airlied@redhat.com>
Sun, 11 Mar 2012 19:05:50 +0000 (19:05 +0000)
commitb60120608f6ddf4098bc324363197c979ee04cb7
treef3757427a0e19359662ede905bfb90359f5fec2d
parent5ea18503e757ceeb9eba32a72fdf02b7bc710275
Set close on exec flag FD_CLOEXEC

Set the close on exec flag when opening dri character devices, so they
will be closed and free any resouces allocated in exec.

Signed-off-by: David Fries <David@Fries.net>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/egl/drivers/dri2/platform_wayland.c
src/egl/drivers/dri2/platform_x11.c
src/gallium/state_trackers/egl/drm/native_drm.c
src/gallium/state_trackers/egl/fbdev/native_fbdev.c
src/gallium/state_trackers/egl/wayland/native_drm.c
src/gallium/state_trackers/egl/x11/x11_screen.c
src/glx/dri2_glx.c