[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[minion-cvs] Use select on cygwin too.



Update of /home/minion/cvsroot/src/minion/lib/mixminion/server
In directory moria.mit.edu:/tmp/cvs-serv16044/lib/mixminion/server

Modified Files:
	MMTPServer.py 
Log Message:
Use select on cygwin too.

Index: MMTPServer.py
===================================================================
RCS file: /home/minion/cvsroot/src/minion/lib/mixminion/server/MMTPServer.py,v
retrieving revision 1.81
retrieving revision 1.82
diff -u -d -r1.81 -r1.82
--- MMTPServer.py	1 Mar 2004 07:18:02 -0000	1.81
+++ MMTPServer.py	6 Mar 2004 05:10:56 -0000	1.82
@@ -258,7 +258,7 @@
         self.poll.unregister(fd)
         del self.connections[fd]
 
-if hasattr(select,'poll') and not _ml.POLL_IS_EMULATED:
+if hasattr(select,'poll') and not _ml.POLL_IS_EMULATED and sys.platform != 'cygwin':
     # Prefer 'poll' to 'select', except on MacOS and other platforms where
     # where 'poll' is just a wrapper around 'select'.  (The poll wrapper is
     # sometimes buggy.)