diff options
author | Derek Foreman <[email protected]> | 2015-06-17 11:28:48 -0500 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2015-06-23 16:54:47 +0100 |
commit | aaac913e901229d11a1894f6aaf646de6b1a542c (patch) | |
tree | 1458cda8de9093cb8b8ff6a45aeba60624497eb3 /src/loader/loader.c | |
parent | be5f71d4a52c9ef72f63bb6c339fe0110f2027af (diff) |
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 <[email protected]>
Reviewed-by: Kristian Høgsberg <[email protected]>
Reviewed-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/loader/loader.c')
0 files changed, 0 insertions, 0 deletions