On 04/05/2011 09:03 AM, Daniel P. Berrange wrote:
The virSetCloseExec API returns -1 on Win32 since it cannot
possibly work. Avoid calling it from the event loop since
is not required in this case.
Well, it _could_ work if gnulib would relax a couple modules to LGPLv2+
instead of their current LGPLv3+.
Meanwhile, mingw _does_ let us create a pipe already non-inheritible
(that is, pipe2(fds, O_CLOEXEC) _does_ work on mingw as an LGPLv2+
gnulib solution).
If you don't mind, I'd rather conditionally NAK this patch and try the
pipe2 approach instead, since the added in-function #ifdefs detract from
readability.
--
Eric Blake eblake(a)redhat.com +1-801-349-2682
Libvirt virtualization library
http://libvirt.org