summaryrefslogtreecommitdiffstats
path: root/src/glx
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2015-06-17 11:28:48 -0500
committerEmil Velikov <emil.l.velikov@gmail.com>2015-06-23 16:54:47 +0100
commitaaac913e901229d11a1894f6aaf646de6b1a542c (patch)
tree1458cda8de9093cb8b8ff6a45aeba60624497eb3 /src/glx
parentbe5f71d4a52c9ef72f63bb6c339fe0110f2027af (diff)
downloadexternal_mesa3d-aaac913e901229d11a1894f6aaf646de6b1a542c.zip
external_mesa3d-aaac913e901229d11a1894f6aaf646de6b1a542c.tar.gz
external_mesa3d-aaac913e901229d11a1894f6aaf646de6b1a542c.tar.bz2
egl/drm: Duplicate fd with F_DUPFD_CLOEXEC to prevent leak
Replacing dup() with fcntl F_DUPFD_CLOEXEC creates the duplicate file descriptor with CLOEXEC so it won't be leaked to child processes if the process fork()s later. Signed-off-by: Derek Foreman <derekf@osg.samsung.com> Reviewed-by: Kristian Høgsberg <krh@bitplanet.net> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Diffstat (limited to 'src/glx')
0 files changed, 0 insertions, 0 deletions