Message 158081 - Python tracker (original) (raw)
Hmm... I don't really like disabling GC, because it has a process-wide side effect, and hence isn't thread-safe: if another thread forks() or creates a subprocess right at the wrong time, it could end up with the GC disabled for good...
That's a problem indeed. Perhaps we need a global "fork lock" shared between subprocess and multiprocessing?