Message383609
Minimal test case:
====
import sys, threading
def run():
for i in range(10000000):
sys.stderr.write(' =.= ')
if __name__ == '__main__':
threading.Thread(target=run, daemon=True).start()
===
I think this is expected behaviour. My knowledge isn't complete here, but something similar to:
* During shutdown, the daemon threads are aborted
* In your example, the thread is very likely to be busy doing IO, so holding the io lock.
* The abort you're seeing is an explicit check/abort to avoid a deadlock (https://bugs.python.org/issue23309). |
|
Date |
User |
Action |
Args |
2020-12-22 19:49:15 | stestagg | set | recipients:
+ stestagg, xxm |
2020-12-22 19:49:15 | stestagg | set | messageid: <1608666555.1.0.884406845558.issue42717@roundup.psfhosted.org> |
2020-12-22 19:49:15 | stestagg | link | issue42717 messages |
2020-12-22 19:49:14 | stestagg | create | |
|