]> git.proxmox.com Git - mirror_qemu.git/commit
qemu-socket: set passed fd non-blocking in socket_connect()
authorStefan Hajnoczi <stefanha@redhat.com>
Wed, 27 Mar 2013 09:10:45 +0000 (10:10 +0100)
committerLuiz Capitulino <lcapitulino@redhat.com>
Tue, 2 Apr 2013 15:47:37 +0000 (11:47 -0400)
commit1a751ebfbb2d7a696b889d8208cb5ffc83c090b1
treee277914b66d699190851f7c3284b58629ea6373d
parentfc13fa00eaff6797c67abc9b0f748b346f238986
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>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
util/qemu-sockets.c