Commit 1e1301d
committed
Only check for non-daemon threads at finalization.
Since threading._shutdown() only shuts down non-daemon threads, daemon
threads would cause the loop to run indefinitely.1 parent f1460af commit 1e1301d
File tree
4 files changed
+25
-5
lines changed- Include/cpython
- Modules
- Python
4 files changed
+25
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
| 110 | + | |
110 | 111 | | |
111 | 112 | | |
112 | 113 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
415 | 415 | | |
416 | 416 | | |
417 | 417 | | |
418 | | - | |
| 418 | + | |
419 | 419 | | |
420 | 420 | | |
421 | 421 | | |
| |||
439 | 439 | | |
440 | 440 | | |
441 | 441 | | |
442 | | - | |
| 442 | + | |
| 443 | + | |
443 | 444 | | |
444 | 445 | | |
445 | 446 | | |
| |||
1874 | 1875 | | |
1875 | 1876 | | |
1876 | 1877 | | |
1877 | | - | |
| 1878 | + | |
1878 | 1879 | | |
1879 | 1880 | | |
1880 | 1881 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2006 | 2006 | | |
2007 | 2007 | | |
2008 | 2008 | | |
| 2009 | + | |
| 2010 | + | |
2009 | 2011 | | |
| 2012 | + | |
2010 | 2013 | | |
2011 | | - | |
| 2014 | + | |
| 2015 | + | |
| 2016 | + | |
| 2017 | + | |
| 2018 | + | |
| 2019 | + | |
| 2020 | + | |
| 2021 | + | |
| 2022 | + | |
| 2023 | + | |
| 2024 | + | |
| 2025 | + | |
| 2026 | + | |
| 2027 | + | |
2012 | 2028 | | |
2013 | 2029 | | |
2014 | 2030 | | |
2015 | 2031 | | |
2016 | 2032 | | |
2017 | 2033 | | |
| 2034 | + | |
2018 | 2035 | | |
2019 | 2036 | | |
2020 | 2037 | | |
| |||
2023 | 2040 | | |
2024 | 2041 | | |
2025 | 2042 | | |
| 2043 | + | |
2026 | 2044 | | |
2027 | 2045 | | |
2028 | 2046 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1447 | 1447 | | |
1448 | 1448 | | |
1449 | 1449 | | |
1450 | | - | |
| 1450 | + | |
1451 | 1451 | | |
1452 | 1452 | | |
1453 | 1453 | | |
| |||
0 commit comments