On 5/11/20 11:37 AM, Bruno Haible wrote:


POSIX [2][3], macOS [4], FreeBSD [5], Solaris [6] don't support this 'e' flag.

Although it _is_ slated to be added in a future revision of POSIX:

https://www.austingroupbugs.net/view.php?id=411


How about using open() with O_CLOEXEC, and then fdopen()?

In the meantime, this is indeed more portable.

--
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3226
Virtualization:  qemu.org | libvirt.org


Reply via email to