qemu-irix/ui
Paolo Bonzini 5af7caaadd vnc: fix "info vnc" with "-vnc ..., reverse=on"
When reverse connection is in use, there is no active VNC server
socket.  Because of this, getsockopt(-1, ...) is attempted and
the following error is emitted:

    $ socat TCP-LISTEN:5900,reuseaddr TCP-LISTEN:5901,reuseaddr &
    $ x86_64-softmmu/qemu-system-x86_64 -vnc localhost:5900,reverse -monitor stdio
    QEMU 1.2.50 monitor - type 'help' for more information
    (qemu) info vnc
    An undefined error has occurred

Because however the host, family, service and auth fields are
optional, we can just exit if there is no active server socket.

    $ x86_64-softmmu/qemu-system-x86_64 -vnc localhost:5900,reverse -monitor stdio
    QEMU 1.2.50 monitor - type 'help' for more information
    (qemu) info vnc
    Server:
    Client:
         address: 127.0.0.1:5900
      x509_dname: none
        username: none

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
(cherry picked from commit 417b0b8890)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
2012-11-30 15:38:14 -06:00
..
Makefile.objs Remove support for non-threaded VNC server 2012-06-27 16:27:00 -05:00
cocoa.m
curses.c
curses_keys.h
d3des.c
d3des.h
keymaps.c
keymaps.h
qemu-spice.h
sdl.c
sdl_keysym.h
sdl_zoom.c
sdl_zoom.h
sdl_zoom_template.h
spice-core.c spice: adding seamless-migration option to the command line 2012-10-09 01:58:29 -05:00
spice-display.c spice: notify on vm state change only via spice_server_vm_start/stop 2012-10-09 01:58:28 -05:00
spice-display.h qxl: add QXL_IO_MONITORS_CONFIG_ASYNC 2012-10-09 01:58:29 -05:00
spice-input.c
vnc-auth-sasl.c
vnc-auth-sasl.h
vnc-auth-vencrypt.c
vnc-auth-vencrypt.h
vnc-enc-hextile-template.h
vnc-enc-hextile.c
vnc-enc-tight.c
vnc-enc-tight.h
vnc-enc-zlib.c
vnc-enc-zrle-template.c
vnc-enc-zrle.c
vnc-enc-zrle.h
vnc-enc-zywrle-template.c
vnc-enc-zywrle.h
vnc-jobs.c
vnc-jobs.h
vnc-palette.c
vnc-palette.h
vnc-tls.c
vnc-tls.h
vnc.c vnc: fix "info vnc" with "-vnc ..., reverse=on" 2012-11-30 15:38:14 -06:00
vnc.h
vnc_keysym.h
x_keymap.c
x_keymap.h