Commit 9303777f authored by Andrew M. Kuchling's avatar Andrew M. Kuchling

[Part of patch #909005] Handle POLLPRI flag, and various errors cases. Fixes bug #887279

parent a982c445
......@@ -82,10 +82,12 @@ def write(obj):
def readwrite(obj, flags):
try:
if flags & select.POLLIN:
if flags & (select.POLLIN | select.POLLPRI):
obj.handle_read_event()
if flags & select.POLLOUT:
obj.handle_write_event()
if flags & (select.POLLERR | select.POLLHUP | select.POLLNVAL):
obj.handle_expt_event()
except ExitNow:
raise
except:
......
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