mirror of
https://github.com/mii443/qemu.git
synced 2025-12-12 05:18:37 +00:00
qemu-sockets: add nonblocking connect for Unix sockets
This patch mostly mimics what was done to TCP sockets, but simpler because there is only one address to try. It also includes a free EINTR bug fix. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
@@ -2450,7 +2450,7 @@ static CharDriverState *qemu_chr_open_socket(QemuOpts *opts)
|
||||
if (is_listen) {
|
||||
fd = unix_listen_opts(opts, NULL);
|
||||
} else {
|
||||
fd = unix_connect_opts(opts, NULL);
|
||||
fd = unix_connect_opts(opts, NULL, NULL, NULL);
|
||||
}
|
||||
} else {
|
||||
if (is_listen) {
|
||||
|
||||
Reference in New Issue
Block a user