mirror of
https://github.com/python/cpython.git
synced 2025-12-04 16:43:27 +00:00
This commit is contained in:
parent
a982c44543
commit
9303777f22
1 changed files with 3 additions and 1 deletions
|
|
@ -82,10 +82,12 @@ def write(obj):
|
||||||
|
|
||||||
def readwrite(obj, flags):
|
def readwrite(obj, flags):
|
||||||
try:
|
try:
|
||||||
if flags & select.POLLIN:
|
if flags & (select.POLLIN | select.POLLPRI):
|
||||||
obj.handle_read_event()
|
obj.handle_read_event()
|
||||||
if flags & select.POLLOUT:
|
if flags & select.POLLOUT:
|
||||||
obj.handle_write_event()
|
obj.handle_write_event()
|
||||||
|
if flags & (select.POLLERR | select.POLLHUP | select.POLLNVAL):
|
||||||
|
obj.handle_expt_event()
|
||||||
except ExitNow:
|
except ExitNow:
|
||||||
raise
|
raise
|
||||||
except:
|
except:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue