nh2 added the comment:
My problem was actually related to the subprocess.Popen I use inside my threads
in combination with signals. As Popen does not spawn a new thread, but a new
process, it completely ignores my locks.
However, it seems impossible to safely unregister signals for
nh2 added the comment:
I think this is still an issue.
If I register signal.signal(signal.SIGINT, handler) in the main thread, I get a
race between
- only the main thread receives the signal (everything is fine)
- both the main thread and currently running threads receive the signal =>
nh2 added the comment:
Me too. This makes developing applications with good localizations in
Python really difficult.
--
nosy: +nh2
___
Python tracker
<http://bugs.python.org/issue2