Re: [Qemu-devel] [PATCH v4 3/7] qapi: Add pass-fd QMP command

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am 25.06.2012 16:51, schrieb Corey Bryant:
> Thanks for catching this.  I'll fix this in v5.  In terms of platforms 
> that support dup3 vs dup2, I'm assuming the following preprocessor 
> checks will do what we need:
> 
> #if defined(__linux__) || defined(__CYGWIN__)
> dup3(fd, monfd->fd, O_CLOEXEC)
> #else
> dup2()+fcntl(F_GETFD/F_SETFD)
> #endif

Checking for dup3() in configure might be the better option. It's not
like it has been there forever, even on Linux.

Kevin

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]