Message302515
Attaching reproducer. During interpreter shutdown, threading.main_thread() gets marked "stopped" (while it's obviously still running), while threading.current_thread() returns a DummyThread instance with the same ident as the main thread.
$ ./python mainthread.py
-- before shutdown --
GC in thread <_MainThread(MainThread, started 140359122872064)>
main thread is <_MainThread(MainThread, started 140359122872064)>
-- during shutdown --
GC in thread <_DummyThread(Dummy-1, started daemon 140359122872064)>
main thread is <_MainThread(MainThread, stopped 140359122872064)> |
|
Date |
User |
Action |
Args |
2017-09-19 11:33:54 | pitrou | set | recipients:
+ pitrou, tim.peters, asvetlov |
2017-09-19 11:33:54 | pitrou | set | messageid: <1505820834.6.0.00526419251789.issue31516@psf.upfronthosting.co.za> |
2017-09-19 11:33:54 | pitrou | link | issue31516 messages |
2017-09-19 11:33:54 | pitrou | create | |
|