Re: interrupted system call w/ Queue.get

2011-03-22 Thread Philip Winston
On Feb 18, 10:23 am, Jean-Paul Calderone wrote: > The exception is caused by a syscall returning EINTR.  A syscall will > return EINTR when a signal arrives and interrupts whatever that > syscall > was trying to do.  Typically a signal won't interrupt the syscall > unless you've installed a signal

Re: interrupted system call w/ Queue.get

2011-02-18 Thread Jean-Paul Calderone
On Feb 17, 8:46 pm, Philip Winston wrote: > We have a multiprocess Python program that uses Queue to communicate > between processes.  Recently we've seen some errors while blocked > waiting on Queue.get: > > IOError: [Errno 4] Interrupted system call > > What causes the exception?  Is it necessar

Re: interrupted system call w/ Queue.get

2011-02-18 Thread Roy Smith
In article , Philip Winston wrote: > We have a multiprocess Python program that uses Queue to communicate > between processes. Recently we've seen some errors while blocked > waiting on Queue.get: > > IOError: [Errno 4] Interrupted system call > > What causes the exception? Unix divides sys

Re: interrupted system call w/ Queue.get

2011-02-17 Thread Dan Stromberg
On Thu, Feb 17, 2011 at 5:46 PM, Philip Winston wrote: > We have a multiprocess Python program that uses Queue to communicate > between processes. Recently we've seen some errors while blocked > waiting on Queue.get: > > IOError: [Errno 4] Interrupted system call > > What causes the exception?

Re: interrupted system call w/ Queue.get

2011-02-17 Thread James Mills
On Fri, Feb 18, 2011 at 11:46 AM, Philip Winston wrote: > We have a multiprocess Python program that uses Queue to communicate > between processes.  Recently we've seen some errors while blocked > waiting on Queue.get: > > IOError: [Errno 4] Interrupted system call > > What causes the exception?  

interrupted system call w/ Queue.get

2011-02-17 Thread Philip Winston
We have a multiprocess Python program that uses Queue to communicate between processes. Recently we've seen some errors while blocked waiting on Queue.get: IOError: [Errno 4] Interrupted system call What causes the exception? Is it necessary to catch this exception and manually retry the Queue