##// END OF EJS Templates
posix: make poll() restart on interruption by signal (issue5452)...
Yuya Nishihara -
r30654:5f33116c stable
parent child Browse files
Show More
@@ -570,7 +570,14 b' def poll(fds):'
570
570
571 In unsupported cases, it will raise a NotImplementedError"""
571 In unsupported cases, it will raise a NotImplementedError"""
572 try:
572 try:
573 while True:
574 try:
573 res = select.select(fds, fds, fds)
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 except ValueError: # out of range file descriptor
581 except ValueError: # out of range file descriptor
575 raise NotImplementedError()
582 raise NotImplementedError()
576 return sorted(list(set(sum(res, []))))
583 return sorted(list(set(sum(res, []))))
General Comments 0
You need to be logged in to leave comments. Login now