Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4087168
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T18:49:16+00:00 2026-05-20T18:49:16+00:00

We suddenly started see Interrupted system call on Queue operations like this: Exception in

  • 0

We suddenly started see “Interrupted system call” on Queue operations like this:

Exception in thread Thread-2:
Traceback (most recent call last):
[ . . . ]
   result = self.pager.results.get(True, self.WAIT_SECONDS)
 File "/usr/lib/python2.5/site-packages/processing-0.52-py2.5-linux-x86_64.egg/processing/queue.py", line 128, in get
   if not self._poll(block and (deadline-time.time()) or 0.0):
IOError: [Errno 4] Interrupted system call

This is a Fedora 10 / Python 2.5 machine that recently had a security update. Prior to that our software had run for about a year without incident, now it is crashing daily.

Is it correct/necessary to catch this exception and retry the Queue operation?

We don’t have any signal handlers that we set, but this is a Tkinter app maybe it sets some. Is it safe to clear the SIGINT handler, would that solve the problem? Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T18:49:17+00:00Added an answer on May 20, 2026 at 6:49 pm

    Based on this thread on comp.lang.python and this reply from Dan Stromberg I wrote a RetryQueue which is a drop-in replacement for Queue and which does the job for us:

    from multiprocessing.queues import Queue
    import errno
    
    def retry_on_eintr(function, *args, **kw):
        while True:
            try:
                return function(*args, **kw)
            except IOError, e:            
                if e.errno == errno.EINTR:
                    continue
                else:
                    raise    
    
    class RetryQueue(Queue):
        """Queue which will retry if interrupted with EINTR."""
        def get(self, block=True, timeout=None):
            return retry_on_eintr(Queue.get, self, block, timeout)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm running an asp.net 2.0 web application. Suddenly this morning, ExecuteNonQuery started returning -1,
One of our weblogic 8.1s has suddenly started logging giant amounts of logs and
yesterday afternoon Visual Studio 2008 suddenly started taking a really long time to open
In our code we used to have something like this: *(controller->bigstruct) = ( struct
I just ran into an annoying problem. Suddenly Avira AntiVir started to flag one
My boss was messing around with this page and suddenly it stopped working and
This isn't easy to explain, but I'll try my best. The issue has started
This is a baffling one. My ASP.NET 3.5 app that was working fine suddenly
Suddenly started getting a interning empty string on all actions for a particular controller
Some code working for years suddenly started to produce unexpected (and false) results. The

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.