summaryrefslogtreecommitdiffstats
path: root/Lib/asyncore.py
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2004-03-21 19:50:09 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2004-03-21 19:50:09 (GMT)
commit0ebbbe30f1652c71133542f237f69a008395a8e7 (patch)
treeb52646837824540da31ea7b73aecbca70167cf17 /Lib/asyncore.py
parent68522b18956b4417f5ab53ad513a6922370c9f2e (diff)
downloadcpython-0ebbbe30f1652c71133542f237f69a008395a8e7.zip
cpython-0ebbbe30f1652c71133542f237f69a008395a8e7.tar.gz
cpython-0ebbbe30f1652c71133542f237f69a008395a8e7.tar.bz2
[Part of patch #909005] Set initial poll flags
Diffstat (limited to 'Lib/asyncore.py')
-rw-r--r--Lib/asyncore.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/asyncore.py b/Lib/asyncore.py
index f5657ff..6e128b1 100644
--- a/Lib/asyncore.py
+++ b/Lib/asyncore.py
@@ -136,9 +136,9 @@ def poll2(timeout=0.0, map=None):
pollster = select.poll()
if map:
for fd, obj in map.items():
- flags = 0
+ flags = select.POLLERR | select.POLLHUP | select.POLLNVAL
if obj.readable():
- flags = select.POLLIN
+ flags = select.POLLIN | select.POLLPRI
if obj.writable():
flags = flags | select.POLLOUT
if flags: