Message375745
According to the docs, multiprocessing.Event is a clone of threading.Event. Yet, there is a strange behavior that is observed only on multiprocessing.Event. If an event.wait() is interrupted by a SIGINT and the signal handler sets the event, then the call to event.set() hangs if event is an instance of multiprocessing.Event, in what looks like a deadlock; instead, it works as expected if it's an instance of threading.Event.
See the file attached for a reproduction.
It seems to have been so for a long time, see: https://stackoverflow.com/questions/24422154/multiprocessing-event-wait-hangs-when-interrupted-by-a-signal/30831867 |
|
Date |
User |
Action |
Args |
2020-08-21 08:01:43 | salvatore.ingala | set | recipients:
+ salvatore.ingala |
2020-08-21 08:01:43 | salvatore.ingala | set | messageid: <1597996903.36.0.845550593577.issue41606@roundup.psfhosted.org> |
2020-08-21 08:01:43 | salvatore.ingala | link | issue41606 messages |
2020-08-21 08:01:43 | salvatore.ingala | create | |
|