diff options
author | Eric Engestrom <[email protected]> | 2020-06-05 10:22:29 +0200 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-06-18 02:09:56 +0000 |
commit | bd5cf70d3db711c31a2f2fca4eb05e20c185e38c (patch) | |
tree | e2ff0e60bcedda267da4ec6bf5cc687f82e4f294 /src/etnaviv/drm | |
parent | 419b446e1e05bfa5bae310656ee8a89f84489d5e (diff) |
etnaviv: 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/etnaviv/drm')
-rw-r--r-- | src/etnaviv/drm/etnaviv_device.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/etnaviv/drm/etnaviv_device.c b/src/etnaviv/drm/etnaviv_device.c index b1fc6b91c89..8d56e9a4f1b 100644 --- a/src/etnaviv/drm/etnaviv_device.c +++ b/src/etnaviv/drm/etnaviv_device.c @@ -25,6 +25,7 @@ */ #include "util/hash_table.h" +#include "util/os_file.h" #include "etnaviv_priv.h" #include "etnaviv_drmif.h" @@ -63,7 +64,7 @@ struct etna_device *etna_device_new(int fd) * which is close()d when the device is finalized. */ struct etna_device *etna_device_new_dup(int fd) { - int dup_fd = dup(fd); + int dup_fd = os_dupfd_cloexec(fd); struct etna_device *dev = etna_device_new(dup_fd); if (dev) |