Show More
@@ -570,7 +570,14 b' def poll(fds):' | |||
|
570 | 570 | |
|
571 | 571 | In unsupported cases, it will raise a NotImplementedError""" |
|
572 | 572 | try: |
|
573 | res = select.select(fds, fds, fds) | |
|
573 | while True: | |
|
574 | try: | |
|
575 | res = select.select(fds, fds, fds) | |
|
576 | break | |
|
577 | except select.error as inst: | |
|
578 | if inst.args[0] == errno.EINTR: | |
|
579 | continue | |
|
580 | raise | |
|
574 | 581 | except ValueError: # out of range file descriptor |
|
575 | 582 | raise NotImplementedError() |
|
576 | 583 | return sorted(list(set(sum(res, [])))) |
General Comments 0
You need to be logged in to leave comments.
Login now