Re: [libvirt-users] Libvirt migration issues (0.9.4 and 0.9.9)

2012-01-31 Thread Eric Blake
[please don't top-post on technical lists] On 01/31/2012 02:47 AM, Daniel Espling wrote: > Sorry for the spamming, but changing the below code: > > if (cloexec) > fd = fcntl(sock->fd, F_DUPFD_CLOEXEC); > else > fd = dup(sock->fd); > > to: > > fd = dup(sock->fd); > if (cloe

Re: [libvirt-users] Libvirt migration issues (0.9.4 and 0.9.9)

2012-01-31 Thread Daniel Espling
Sorry for the spamming, but changing the below code: if (cloexec) fd = fcntl(sock->fd, F_DUPFD_CLOEXEC); else fd = dup(sock->fd); to: fd = dup(sock->fd); if (cloexec && fd >= 0) cntl(fd, F_SETFD, FD_CLOEXEC); made it work for me. //Daniel On Jan 31, 2012, at 10:

Re: [libvirt-users] Libvirt migration issues (0.9.4 and 0.9.9)

2012-01-31 Thread Daniel Espling
Hi again, I spent some time trying to debug this: added some printouts and noticed that the virNetSocketDupFD() function is called with cloexec = True, hence triggering the call: fd = fcntl(sock->fd, F_DUPFD_CLOEXEC); However, running on CentOS 5.5 our glibc version is glibc-2.5-49.el5_5.5, a

[libvirt-users] Libvirt migration issues (0.9.4 and 0.9.9)

2012-01-30 Thread Daniel Espling
Dear all, we're having two different problems with migrations in libvirt, running as root user on host machines with CentOS release 5.5 (Final), kernel: Linux 2.6.32.24 #3 SMP Fri Oct 29 16:22:02 BST 2010 x86_64 x86_64 x86_64 GNU/Linux First case: virsh version Compiled against library: libvir