diff options
author | Eric Engestrom <[email protected]> | 2020-06-05 10:22:22 +0200 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-06-18 02:09:56 +0000 |
commit | 419b446e1e05bfa5bae310656ee8a89f84489d5e (patch) | |
tree | 9bb09d49c169e87a29e160d6b587c49a3afaee89 /src/egl/drivers/dri2/egl_dri2.c | |
parent | 62797c30edb3c200c531bced9d397aab54497931 (diff) |
egl: replace all dup() with os_dupfd_cloexec()
Signed-off-by: Eric Engestrom <[email protected]>
Reviewed-by: Kristian H. Kristensen <[email protected]>
Reviewed-by: Lionel Landwerlin <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5369>
Diffstat (limited to 'src/egl/drivers/dri2/egl_dri2.c')
-rw-r--r-- | src/egl/drivers/dri2/egl_dri2.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c index 2e51d28a8b9..5baa0c9b647 100644 --- a/src/egl/drivers/dri2/egl_dri2.c +++ b/src/egl/drivers/dri2/egl_dri2.c @@ -62,6 +62,7 @@ #include "egl_dri2.h" #include "GL/mesa_glinterop.h" #include "loader/loader.h" +#include "util/os_file.h" #include "util/u_atomic.h" #include "util/u_vector.h" #include "mapi/glapi/glapi.h" @@ -3456,7 +3457,7 @@ dri2_dup_native_fence_fd(_EGLDriver *drv, _EGLDisplay *disp, _EGLSync *sync) return EGL_NO_NATIVE_FENCE_FD_ANDROID; } - return dup(sync->SyncFd); + return os_dupfd_cloexec(sync->SyncFd); } static void |