◐ Shell
clean mode source ↗

Message 304716 - Python tracker

Oh, I forgot that IO buffered objects also have a lock.  So we would have to special-case those as well, unless we take the generic approach...

A problem with the generic approach is that it would leave higher-level synchronization objects such as RLock, Event etc. in an inconsistent state.  Not to mention the case where the lock is taken by the thread calling fork()...