From: Eric Engestrom Date: Fri, 5 Jun 2020 08:54:51 +0000 (+0200) Subject: iris: replace all dup() with os_dupfd_cloexec() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e0e9c2486d6cb1330dfab5a40d35bdc267c9da66;p=mesa.git iris: replace all dup() with os_dupfd_cloexec() Signed-off-by: Eric Engestrom Reviewed-by: Kristian H. Kristensen Reviewed-by: Lionel Landwerlin Part-of: --- diff --git a/src/gallium/drivers/iris/iris_bufmgr.c b/src/gallium/drivers/iris/iris_bufmgr.c index 5529d3767da..e6b5c9763b5 100644 --- a/src/gallium/drivers/iris/iris_bufmgr.c +++ b/src/gallium/drivers/iris/iris_bufmgr.c @@ -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);