comparison mercurial/posix.py @ 30697:13d94304c8da

merge with stable
author Augie Fackler <augie@google.com>
date Wed, 04 Jan 2017 14:52:59 -0500
parents e995f00a9e9a 5f33116cd787
children 492c64afc54c
comparison
equal deleted inserted replaced
30696:667d9c93c412 30697:13d94304c8da
605 This is a generic helper that will check for any activity 605 This is a generic helper that will check for any activity
606 (read, write. exception) and return the list of touched files. 606 (read, write. exception) and return the list of touched files.
607 607
608 In unsupported cases, it will raise a NotImplementedError""" 608 In unsupported cases, it will raise a NotImplementedError"""
609 try: 609 try:
610 res = select.select(fds, fds, fds) 610 while True:
611 try:
612 res = select.select(fds, fds, fds)
613 break
614 except select.error as inst:
615 if inst.args[0] == errno.EINTR:
616 continue
617 raise
611 except ValueError: # out of range file descriptor 618 except ValueError: # out of range file descriptor
612 raise NotImplementedError() 619 raise NotImplementedError()
613 return sorted(list(set(sum(res, [])))) 620 return sorted(list(set(sum(res, []))))
614 621
615 def readpipe(pipe): 622 def readpipe(pipe):