def safe_call(self, command):
        while True:
            try:
                return call(command, shell=True, stdout=PIPE)
            except OSError, e:
                if e.errno == errno.EINTR:
                    continue
                else:
                    raise
cross-platform command-line check
dataset/ETHPy150Open Kilian/Trimage/src/trimage/trimage.py/StartQT4.safe_call