title: What is the proper way to handle (in python) IOError: [Errno 4] Interrupted system call, raised by multiprocessing.Queue.get
body: <p>When I use multiprocessing.Queue.get I sometimes get an exception due to EINTR.</p>
  
  <p>I know definitely that sometimes this happens for no good reason (I open another pane in a tmux buffr), and in such a case I would want to continue working and retry the operation.</p>
  
  <p>I can imagine that in some other cases The error would be due to a good reason and I should stop running or fix some error.</p>
  
  <p>How can I distinguish the two?</p>
  
  <p>Thanks in advance</p>