mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 02:24:58 -06:00
socket: Add num connections to qio_channel_socket_sync()
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Signed-off-by: Juan Quintela <quintela@redhat.com>
This commit is contained in:
parent
e5b6353cf2
commit
4e2d8bf6f1
8 changed files with 14 additions and 10 deletions
|
@ -1005,7 +1005,8 @@ int main(int argc, char **argv)
|
|||
.u.q_unix.path = socket_path,
|
||||
};
|
||||
server_ioc = qio_channel_socket_new();
|
||||
if (qio_channel_socket_listen_sync(server_ioc, &saddr, &local_err) < 0) {
|
||||
if (qio_channel_socket_listen_sync(server_ioc, &saddr,
|
||||
1, &local_err) < 0) {
|
||||
object_unref(OBJECT(server_ioc));
|
||||
error_report_err(local_err);
|
||||
return 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue