diff options
author | Anthony Liguori <anthony@codemonkey.ws> | 2013-10-09 07:52:21 -0700 |
---|---|---|
committer | Anthony Liguori <anthony@codemonkey.ws> | 2013-10-09 07:52:21 -0700 |
commit | 9e8f8b1cd8e1b85dc93c367c4745f9944079a37b (patch) | |
tree | a4368aa23843f61829c01eb25a0deebee2262642 /slirp/misc.c | |
parent | dfe22799751818115ed6d36bedc8a55b2026de3a (diff) | |
parent | 04fd1c789677fe121cb9546c652d088c994477fb (diff) | |
download | hqemu-9e8f8b1cd8e1b85dc93c367c4745f9944079a37b.zip hqemu-9e8f8b1cd8e1b85dc93c367c4745f9944079a37b.tar.gz |
Merge remote-tracking branch 'sweil/mingw' into staging
# By Sebastian Ottlik
# Via Stefan Weil
* sweil/mingw:
util: call socket_set_fast_reuse instead of setting SO_REUSEADDR
slirp: call socket_set_fast_reuse instead of setting SO_REUSEADDR
net: call socket_set_fast_reuse instead of setting SO_REUSEADDR
gdbstub: call socket_set_fast_reuse instead of setting SO_REUSEADDR
util: add socket_set_fast_reuse function which will replace setting SO_REUSEADDR
Message-id: 1380735690-24009-1-git-send-email-sw@weilnetz.de
Signed-off-by: Anthony Liguori <anthony@codemonkey.ws>
Diffstat (limited to 'slirp/misc.c')
-rw-r--r-- | slirp/misc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/slirp/misc.c b/slirp/misc.c index c0d4899..6c1636f 100644 --- a/slirp/misc.c +++ b/slirp/misc.c @@ -212,8 +212,7 @@ fork_exec(struct socket *so, const char *ex, int do_pty) so->s = accept(s, (struct sockaddr *)&addr, &addrlen); } while (so->s < 0 && errno == EINTR); closesocket(s); - opt = 1; - qemu_setsockopt(so->s, SOL_SOCKET, SO_REUSEADDR, &opt, sizeof(int)); + socket_set_fast_reuse(so->s); opt = 1; qemu_setsockopt(so->s, SOL_SOCKET, SO_OOBINLINE, &opt, sizeof(int)); qemu_set_nonblock(so->s); |