Message73172
Note that Windows does not crash in such cases:
>>> import socket, _multiprocessing
>>> obj = _multiprocessing.Connection(44977608)
>>> obj.poll()
IOError: [Errno 10038] An operation was attempted on something that is
not a socket
>>> s = socket.socket()
>>> obj = _multiprocessing.Connection(s.fileno())
>>> obj.poll()
False
>>> s.close()
>>> obj.poll()
IOError: [Errno 10038] An operation was attempted on something that is
not a socket
So some "#ifndef MS_WINDOWS" should be enough... |
|
Date |
User |
Action |
Args |
2008-09-13 09:36:05 | amaury.forgeotdarc | set | recipients:
+ amaury.forgeotdarc, vstinner, ajaksu2, roudkerk, jnoller |
2008-09-13 09:36:05 | amaury.forgeotdarc | set | messageid: <1221298565.57.0.0651033220947.issue3321@psf.upfronthosting.co.za> |
2008-09-13 09:36:04 | amaury.forgeotdarc | link | issue3321 messages |
2008-09-13 09:36:04 | amaury.forgeotdarc | create | |
|