tFix for Win32 server being able to be run multiple times on the same port - vaccinewars - be a doctor and try to vaccinate the world
git clone git://src.adamsgaard.dk/vaccinewars
Log
Files
Refs
README
LICENSE
---
commit 331584e9d3de000bbc3ca25e31572987ed404315
parent 55f961b9234678e500c431c4e430e210ff24ee42
Author: Ben Webb 
Date:   Sun,  3 Feb 2002 20:28:28 +0000

Fix for Win32 server being able to be run multiple times on the same port


Diffstat:
  M src/serverside.c                    |       5 +++++

1 file changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/serverside.c b/src/serverside.c
t@@ -708,7 +708,12 @@ static gboolean StartServer(void) {
      FreeError(sockerr);
      exit(1);
    }
+
+/* This doesn't seem to work properly under Win32 */
+#ifndef CYGWIN
    SetReuse(ListenSock);
+#endif
+
    SetBlocking(ListenSock,FALSE);
 
    if (!BindTCPSocket(ListenSock,Port,&sockerr)) {