summaryrefslogtreecommitdiff
path: root/Lib/asyncore.py
diff options
context:
space:
mode:
authorCharles-François Natali <neologix@free.fr>2011-11-05 14:16:01 +0100
committerCharles-François Natali <neologix@free.fr>2011-11-05 14:16:01 +0100
commit828eec0f70a30ebec9e3e54162ad1620f33c9fd0 (patch)
treee9996c78a8cd515ab5bf39e0b4c8fe55c1d31268 /Lib/asyncore.py
parentf6e5aea4f19b510e339969b60389af3f46f5d16a (diff)
downloadcpython-828eec0f70a30ebec9e3e54162ad1620f33c9fd0.tar.gz
asyncore: POLLERR, POLLHUP and POLLNVAL are ignored when passed as input flag
to poll(2): don't set them.
Diffstat (limited to 'Lib/asyncore.py')
-rw-r--r--Lib/asyncore.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/Lib/asyncore.py b/Lib/asyncore.py
index 6d4bbbe309..920444d89a 100644
--- a/Lib/asyncore.py
+++ b/Lib/asyncore.py
@@ -181,9 +181,6 @@ def poll2(timeout=0.0, map=None):
if obj.writable() and not obj.accepting:
flags |= select.POLLOUT
if flags:
- # Only check for exceptions if object was either readable
- # or writable.
- flags |= select.POLLERR | select.POLLHUP | select.POLLNVAL
pollster.register(fd, flags)
try:
r = pollster.poll(timeout)