equal
deleted
inserted
replaced
714 This is a generic helper that will check for any activity |
714 This is a generic helper that will check for any activity |
715 (read, write. exception) and return the list of touched files. |
715 (read, write. exception) and return the list of touched files. |
716 |
716 |
717 In unsupported cases, it will raise a NotImplementedError""" |
717 In unsupported cases, it will raise a NotImplementedError""" |
718 try: |
718 try: |
719 while True: |
719 res = select.select(fds, fds, fds) |
720 try: |
|
721 res = select.select(fds, fds, fds) |
|
722 break |
|
723 except select.error as inst: |
|
724 if inst.args[0] == errno.EINTR: |
|
725 continue |
|
726 raise |
|
727 except ValueError: # out of range file descriptor |
720 except ValueError: # out of range file descriptor |
728 raise NotImplementedError() |
721 raise NotImplementedError() |
729 return sorted(list(set(sum(res, [])))) |
722 return sorted(list(set(sum(res, [])))) |
730 |
723 |
731 |
724 |