mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -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
|
@ -2456,7 +2456,7 @@ static CharDriverState *qemu_chr_open_socket(QemuOpts *opts)
|
|||
if (is_listen) {
|
||||
fd = inet_listen_opts(opts, 0, NULL);
|
||||
} else {
|
||||
fd = inet_connect_opts(opts, NULL, NULL);
|
||||
fd = inet_connect_opts(opts, true, NULL, NULL);
|
||||
}
|
||||
}
|
||||
if (fd < 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue