mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
slirp: replace qemu_set_nonblock()
Replace qemu_set_nonblock() with slirp_set_nonblock() qemu_set_nonblock() does some event registration with the main loop. Add a new callback register_poll_fd() for that reason. Always build the fd-register stub, to avoid #if WIN32. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
This commit is contained in:
parent
707bd47ef3
commit
848c7092ba
7 changed files with 30 additions and 4 deletions
|
@ -163,7 +163,8 @@ fork_exec(struct socket *so, const char *ex)
|
|||
slirp_socket_set_fast_reuse(so->s);
|
||||
opt = 1;
|
||||
slirp_setsockopt(so->s, SOL_SOCKET, SO_OOBINLINE, &opt, sizeof(int));
|
||||
qemu_set_nonblock(so->s);
|
||||
slirp_set_nonblock(so->s);
|
||||
so->slirp->cb->register_poll_fd(so->s);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue