Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ignore EINTR in channel loops #501

Closed
wants to merge 1 commit into from
Closed

ignore EINTR in channel loops #501

wants to merge 1 commit into from

Conversation

minrk
Copy link
Member

@minrk minrk commented Jun 3, 2011

closes #499

calls to ioloop.start() are wrapped in:

while True:
    try:
        self.ioloop.start()
    except zmq.ZMQError as e:
        if e.errno == errno.EINTR:
            continue
        else:
            raise
    else:
        break

preventing Qt's spurious interrupts from crashing channels.

@minrk minrk closed this in 3e19444 Jun 4, 2011
minrk added a commit that referenced this pull request Aug 27, 2013
…continue.

The zmq heartbeat channel exits when it encounters an
"Interrupted system call", thereby causing the qtconsole to
report that it is not responding, despite the console working
perfectly fine. Observed in a large Qt application embedding
the ipython qtconsole in KDE desktop.
Fixes #2310
Inspired by #501
mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this pull request Nov 3, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"ZMQError: Interrupted system call" when saving inline figure
1 participant