

def accept_no_intr(sock):
    ' Call sock.accept such that if it is interrupted by an EINTR\n        ("Interrupted system call") signal or a KeyboardInterrupt exception, it\n        is re-called.\n    '
    while True:
        try:
            return err.accept()
        except socket.error as err:
            if (err.args[0] != EINTR):
                raise
        except KeyboardInterrupt:
            pass

dataset/ETHPy150Open enthought/envisage/envisage/plugins/remote_editor/communication/util.py accept_no_intr/VarMisuse@22/93 `sock`->`err`