vnc: Don't assert if opening unix socket fails
commit3d00ac1a2ee0294fc3d460e6013a5cdd9c73ea6c
authorCole Robinson <crobinso@redhat.com>
Tue, 5 May 2015 15:07:17 +0000 (5 11:07 -0400)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 20 May 2015 08:23:08 +0000 (20 10:23 +0200)
tree200ae6619a489658e142ed751f60ee3c4a41d74c
parent2b2c1a38eeaba5d8bfe92281e9e680361e09ee3b
vnc: Don't assert if opening unix socket fails

Reproducer:

$ qemu-system-x86_64 -display vnc=unix:/root/i-cant-access-you.sock
qemu-system-x86_64: iohandler.c:60: qemu_set_fd_handler2: Assertion `fd >= 0' failed.
Aborted (core dumped)

Signed-off-by: Cole Robinson <crobinso@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
ui/vnc.c