diff options
author | Derek Foreman <derekf@osg.samsung.com> | 2015-06-17 11:28:48 -0500 |
---|---|---|
committer | Emil Velikov <emil.l.velikov@gmail.com> | 2015-06-23 16:54:47 +0100 |
commit | aaac913e901229d11a1894f6aaf646de6b1a542c (patch) | |
tree | 1458cda8de9093cb8b8ff6a45aeba60624497eb3 /src/glx | |
parent | be5f71d4a52c9ef72f63bb6c339fe0110f2027af (diff) | |
download | external_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