Message 32214 - Python tracker (original) (raw)
I like #2. I don't see any use for threadsafe Popen instances, and I think that any self-respecting long-running server using Popen should properly manage its subprocesses anyway. (And for short-running processes it doesn't really matter if you have a few zombies.)
One could add a del method that registers zombies to be reaped later, but I don't think it's worth it, and del has some serious issues of its own. (If you really want to do this, use a weak reference callback instead of del to do the zombie registration.)