Message152912
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. |
|
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 | |
|