mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 02:03:56 -06:00
Separate inet_connect into inet_connect (blocking) and inet_nonblocking_connect
No need to add non blocking parameters to the blocking inet_connect add block parameter for inet_connect_opts instead of using QemuOpt "block". Signed-off-by: Orit Wasserman <owasserm@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
05bc1d8a4b
commit
5db5f44cb4
6 changed files with 57 additions and 16 deletions
2
ui/vnc.c
2
ui/vnc.c
|
@ -3061,7 +3061,7 @@ int vnc_display_open(DisplayState *ds, const char *display)
|
|||
if (strncmp(display, "unix:", 5) == 0)
|
||||
vs->lsock = unix_connect(display+5);
|
||||
else
|
||||
vs->lsock = inet_connect(display, true, NULL, NULL);
|
||||
vs->lsock = inet_connect(display, NULL);
|
||||
if (-1 == vs->lsock) {
|
||||
g_free(vs->display);
|
||||
vs->display = NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue