]> www.infradead.org Git - users/dwmw2/qemu.git/commit
qemu-socket: set passed fd non-blocking in socket_connect()
authorStefan Hajnoczi <stefanha@redhat.com>
Thu, 4 Apr 2013 14:18:30 +0000 (16:18 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Thu, 4 Apr 2013 20:17:32 +0000 (15:17 -0500)
commit283b7de6a57ff96db89d46874cfdb6fc590760dc
tree7d311766ccf4b42e85af4b9dcd4f95f8dd1ef493
parenta1cb89f3fedd6206bc1d99744f303afad2fa6dee
qemu-socket: set passed fd non-blocking in socket_connect()

socket_connect() sets non-blocking on TCP or UNIX domain sockets if a
callback function is passed.  Do the same for file descriptor passing,
otherwise we could unexpectedly be using a blocking file descriptor.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
(cherry picked from commit 35fb94fa292173a3e1df0768433e06912a2a88e4)

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
util/qemu-sockets.c