This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients mikemccand, pitrou, tzot
Date 2008-01-25.21:58:04
SpamBayes Score 0.01741475
Marked as misclassified No
Message-id <1201298344.97.0.640772879696.issue874900@psf.upfronthosting.co.za>
In-reply-to
Content
It's not only the _active_limbo_lock. All global structures of the
threading module should be reinitialized (including the _MainThread
instance); for that purpose, reload() can be used. I attach an example
which exercises this problem. Normally the script should hang in the
last step (using os.fork() and launching threads while some other
threads call threading.enumerate() in a loop).

The safe_fork() function in the example is a replacement for os.fork()
which tries to avoid any deadlock in the threading module. If it's
deemed useful and bug-free, it could perhaps be added somewhere in the
stdlib (in the threading module itself perhaps).
History
Date User Action Args
2008-01-25 21:59:05pitrousetspambayes_score: 0.0174148 -> 0.01741475
recipients: + pitrou, mikemccand, tzot
2008-01-25 21:59:05pitrousetspambayes_score: 0.0174148 -> 0.0174148
messageid: <1201298344.97.0.640772879696.issue874900@psf.upfronthosting.co.za>
2008-01-25 21:58:04pitroulinkissue874900 messages
2008-01-25 21:58:04pitroucreate