iris: replace all dup() with os_dupfd_cloexec()

Signed-off-by: Eric Engestrom <eric@engestrom.ch>
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5369>
This commit is contained in:
Eric Engestrom 2020-06-05 10:54:51 +02:00 committed by Marge Bot
parent 00defe2e0a
commit e0e9c2486d
1 changed files with 1 additions and 1 deletions

View File

@ -1801,7 +1801,7 @@ iris_bufmgr_create(struct gen_device_info *devinfo, int fd, bool bo_reuse)
* Don't do this! Ensure that each library/bufmgr has its own device
* fd so that its namespace does not clash with another.
*/
bufmgr->fd = dup(fd);
bufmgr->fd = os_dupfd_cloexec(fd);
p_atomic_set(&bufmgr->refcount, 1);