What is the proper way to handle (in python) IOError: [Errno 4] Interrupted system call, raised by multiprocessing.Queue.get
问题 When I use multiprocessing.Queue.get I sometimes get an exception due to EINTR. 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. 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. How can I distinguish the two? Thanks in advance 回答1: The EINTR error can be returned from many system calls