mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +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):
|
||||
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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue