[pypy-svn] r42652 - in pypy/dist/pypy: module/select rlib
afa at codespeak.net
afa at codespeak.net
Fri May 4 00:01:22 CEST 2007
Author: afa
Date: Fri May 4 00:01:21 2007
New Revision: 42652
Modified:
pypy/dist/pypy/module/select/interp_select.py
pypy/dist/pypy/rlib/_rsocket_ctypes.py
Log:
Close Events handle after use
Modified: pypy/dist/pypy/module/select/interp_select.py
==============================================================================
--- pypy/dist/pypy/module/select/interp_select.py (original)
+++ pypy/dist/pypy/module/select/interp_select.py Fri May 4 00:01:21 2007
@@ -180,6 +180,9 @@
if revents:
retval_w.append(space.newtuple([space.wrap(fd),
space.wrap(revents)]))
+
+ _c.WSACloseEvent(event)
+
return space.newlist(retval_w)
poll.unwrap_spec = ['self', ObjSpace, W_Root]
Modified: pypy/dist/pypy/rlib/_rsocket_ctypes.py
==============================================================================
--- pypy/dist/pypy/rlib/_rsocket_ctypes.py (original)
+++ pypy/dist/pypy/rlib/_rsocket_ctypes.py Fri May 4 00:01:21 2007
@@ -597,6 +597,10 @@
WSACreateEvent.argtypes = []
WSACreateEvent.restype = WSAEVENT
+ WSACloseEvent = socketdll.WSACloseEvent
+ WSACloseEvent.argtypes = [WSAEVENT]
+ WSACloseEvent.restype = c_int
+
WSAEventSelect = socketdll.WSAEventSelect
WSAEventSelect.argtypes = [socketfd_type, WSAEVENT, c_long]
WSAEventSelect.restype = c_int
More information about the Pypy-commit
mailing list