mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-04 02:18:37 +00:00
vgdb: allow address reuse to avoid "address already in use" errors
https://bugs.kde.org/show_bug.cgi?id=459476
This commit is contained in:
parent
f2550057e1
commit
ea91997394
1
NEWS
1
NEWS
@ -22,6 +22,7 @@ are not entered into bugzilla tend to get forgotten about or ignored.
|
||||
|
||||
170510 Don't warn about ioctl of size 0 without direction hint
|
||||
444110 priv/guest_ppc_toIR.c:36198:31: warning: duplicated 'if' condition.
|
||||
459476 vgdb: allow address reuse to avoid "address already in use" errorsuse" errors
|
||||
|
||||
To see details of a given bug, visit
|
||||
https://bugs.kde.org/show_bug.cgi?id=XXXXXX
|
||||
|
||||
@ -498,6 +498,14 @@ void wait_for_gdb_connect(int in_port)
|
||||
XERROR(errno, "cannot create socket\n");
|
||||
}
|
||||
|
||||
/* allow address reuse to avoid "address already in use" errors */
|
||||
|
||||
int one = 1;
|
||||
if (setsockopt(listen_gdb, SOL_SOCKET, SO_REUSEADDR,
|
||||
&one, sizeof(one)) < 0) {
|
||||
XERROR(errno, "cannot enable address reuse\n");
|
||||
}
|
||||
|
||||
memset(&addr, 0, sizeof(addr));
|
||||
|
||||
addr.sin_family = AF_INET;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user