def accept_no_intr(sock):
    while True:
        try:
            return sock.accept()
        except socket.error as err:
            if err.args[0] != EINTR:
                raise
        except KeyboardInterrupt:
            pass
Returns the disk mounted at device
dataset/ETHPy150Open enthought/envisage/envisage/plugins/remote_editor/communication/util.py/accept_no_intr--crossover with--dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/virt/libvirt/guest.py/Guest.get_disk