Message196529
| Author |
pitrou |
| Recipients |
asvetlov, christian.heimes, giampaolo.rodola, pitrou, vstinner |
| Date |
2013年08月30日.12:47:11 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1412699048.25054518.1377866825205.JavaMail.root@zimbra10-e2.priv.proxad.net> |
| In-reply-to |
<1377865767.35.0.127332548745.issue18882@psf.upfronthosting.co.za> |
| Content |
> The function must take care of fork() in worker threads, too. The
> isinstance(current_thread(), _MainThread) trick may not work.
Well, there are two possibilities:
- main_thread() returns the original _MainThread instance, even if it's
dead in the child process
- main_thread() returns the main thread of the current process
Both are reasonable, but we must settle for one :-)
(also, the use case of forking from a thread is really obscure, I don't
think we should worry too much about it) |
|