Re: [libvirt] [PATCH v2 3/4] qemu: don't retry connect() if doing FD passing

2018-04-20 Thread John Ferlan
On 04/18/2018 01:30 PM, Daniel P. Berrangé wrote: > Since libvirt called bind() and listen() on the UNIX socket, it is > guaranteed that connect() will immediately succeed, if QEMU is running > normally. It will only fail if QEMU has closed the monitor socket by > mistake or if QEMU has exited,

[libvirt] [PATCH v2 3/4] qemu: don't retry connect() if doing FD passing

2018-04-18 Thread Daniel P . Berrangé
Since libvirt called bind() and listen() on the UNIX socket, it is guaranteed that connect() will immediately succeed, if QEMU is running normally. It will only fail if QEMU has closed the monitor socket by mistake or if QEMU has exited, letting the kernel close it. With this in mind we can