From 8f540fe7c6da72be29aab0c1625705300a08e06d Mon Sep 17 00:00:00 2001 From: hpk Date: Sat, 27 Jan 2007 20:22:23 +0100 Subject: [PATCH] [svn r37446] don't try this on windows --HG-- branch : trunk --- py/execnet/script/socketserver.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/py/execnet/script/socketserver.py b/py/execnet/script/socketserver.py index 289523292..b886a31f4 100755 --- a/py/execnet/script/socketserver.py +++ b/py/execnet/script/socketserver.py @@ -53,8 +53,8 @@ def bind_and_listen(hostport): old = fcntl.fcntl(serversock.fileno(), fcntl.F_GETFD) fcntl.fcntl(serversock.fileno(), fcntl.F_SETFD, old | fcntl.FD_CLOEXEC) # allow the address to be re-used in a reasonable amount of time - #if os.name == 'posix' and sys.platform != 'cygwin': - serversock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) + if os.name == 'posix' and sys.platform != 'cygwin': + serversock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) serversock.bind(hostport) serversock.listen(5)