[issue30975] multiprocessing.Condition.notify_all() blocks indefinitely if a process waiting on it has died
Antoine Pitrou
report at bugs.python.org
Thu Jul 20 10:05:30 EDT 2017
Antoine Pitrou added the comment:
As a matter of fact, the bug is in Condition (which is used by Event.wait() but not by Event.is_set(), hence your workaround). Here is a reproducer script.
This looks like a hard issue to solve. There is no way to know whether a process that used to be waiting for a Condition was killed.
----------
title: Multiprocessing: Event.set() blocks indefinitely if a process waiting on it has died. -> multiprocessing.Condition.notify_all() blocks indefinitely if a process waiting on it has died
Added file: http://bugs.python.org/file47027/WaitersSleepers.py
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30975>
_______________________________________
More information about the Python-bugs-list
mailing list