https://bugs.kde.org/show_bug.cgi?id=459476
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
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;