I am using the multiprocessing
python module with Queue
for communication between processes. Some processes only send (i.e. queue.put
) and I can't seem to find a way to detect when the receiving end gets terminated abruptly.
Is there a way to detect if the process at the other end of the Queue gets terminated without having to get
from the Queue? Isn't there a signal I could trap somehow? Or do I have to periodically get
from the Queue and trap the EOFError
manually.