On Thu, Nov 12, 2026 at 05:17:30PM +0100, Filip Hejsek wrote:
> Move qemu_dup() out of an #ifndef so it can be called from code that
> runs on Windows. Then use it instead of dup() to ensure the cloexec
> flag is set on dup'd fds.
> 
> The only direct users of dup() are now guest syscalls in the user
> emulators and the implementation of qemu_dup() itself.
> 
> Signed-off-by: Filip Hejsek <[email protected]>
> ---

Reviewed-by: Eric Blake <[email protected]>

-- 
Eric Blake, Principal Software Engineer
Red Hat, Inc.
Virtualization:  qemu.org | libguestfs.org


Reply via email to