Message152912
| Author |
sbt |
| Recipients |
brandjon, jnoller, neologix, pitrou, sbt |
| Date |
2012年02月08日.22:05:57 |
| SpamBayes Score |
3.0330166e-10 |
| Marked as misclassified |
No |
| Message-id |
<1328738758.27.0.249013735312.issue13841@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
I think the patch makes multiprocessing.util._exit_function() run twice in non-main processes because it is registered with atexit, and is also called in Process._bootstrap().
_exit_function() does the following:
* terminate active daemon processes;
* join active non-daemon processes;
* run finalizers with non-None exit priority and clear finalizer registry.
So calling _exit_function() twice is probably harmless but should perhaps be fixed.
P.S. It also appears that _exit_function() should set the global _exiting to True, since it declares the variable as a global but does not use it. As a result util.is_exiting() always returns False. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2012年02月08日 22:05:58 | sbt | set | recipients:
+ sbt, pitrou, jnoller, neologix, brandjon |
| 2012年02月08日 22:05:58 | sbt | set | messageid: <1328738758.27.0.249013735312.issue13841@psf.upfronthosting.co.za> |
| 2012年02月08日 22:05:57 | sbt | link | issue13841 messages |
| 2012年02月08日 22:05:57 | sbt | create |
|