Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

From memory, the reason it deadlocks is:

1. Writing to stderr grabs a lock.

2. Part of the multiprocessing code (perhaps not present in Python 2) also grabs this lock.

3. If you fork at the right moment (which is quite likely with the loop) the lock is held by a thread that is now dead, and so now you're waiting for a lock to release that will never be released.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: