Commit 0ebbbe30 authored by Andrew M. Kuchling's avatar Andrew M. Kuchling

[Part of patch #909005] Set initial poll flags

parent 68522b18
...@@ -136,9 +136,9 @@ def poll2(timeout=0.0, map=None): ...@@ -136,9 +136,9 @@ def poll2(timeout=0.0, map=None):
pollster = select.poll() pollster = select.poll()
if map: if map:
for fd, obj in map.items(): for fd, obj in map.items():
flags = 0 flags = select.POLLERR | select.POLLHUP | select.POLLNVAL
if obj.readable(): if obj.readable():
flags = select.POLLIN flags = select.POLLIN | select.POLLPRI
if obj.writable(): if obj.writable():
flags = flags | select.POLLOUT flags = flags | select.POLLOUT
if flags: if flags:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment