Commit 050d0a6a authored by Fabio Utzig's avatar Fabio Utzig
Browse files

Merge pull request #19 from simias/master

Add SO_REUSEADDR to gdb socket to avoid "address already in use" errors
parents a5658801 6a26975f
......@@ -160,6 +160,7 @@ Listen(unsigned int iPort)
unsigned int addrlen;
struct sockaddr_in sin;
struct sockaddr_in pin;
int so_reuseaddr = 1;
int sdListen;
......@@ -170,6 +171,13 @@ Listen(unsigned int iPort)
// Attempt to set SO_REUSEADDR to avoid "address already in use" errors
// Set up to listen on all interfaces/addresses and port iPort
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment