--- trousers-0.3.1/src/tcsd/svrside.c~ 2007-08-29 22:11:13.000000000 +0100 +++ trousers-0.3.1/src/tcsd/svrside.c 2008-09-27 10:23:08.000000000 +0100 @@ -268,6 +268,8 @@ main(int argc, char **argv) else serv_addr.sin_addr.s_addr = htonl(INADDR_ANY); + c = 1; + setsockopt(sd, SOL_SOCKET, SO_REUSEADDR, &c, sizeof(c)); if (bind(sd, (struct sockaddr *) &serv_addr, sizeof (serv_addr)) < 0) { LogError("Failed bind: %s", strerror(errno)); return -1;