mirror of
https://github.com/python/cpython.git
synced 2025-07-09 20:35:26 +00:00
Mark Hammond: For Windows debug builds, we now only offer to dump
remaining object references if the environment variable PYTHONDUMPREFS exists. The default behaviour caused problems for background or otherwise invisible processes that use the debug build of Python.
This commit is contained in:
parent
7c4f96f442
commit
eca4784781
1 changed files with 5 additions and 1 deletions
|
@ -242,7 +242,11 @@ Py_Finalize()
|
|||
#endif
|
||||
|
||||
#ifdef Py_TRACE_REFS
|
||||
if (_Py_AskYesNo("Print left references?")) {
|
||||
if (
|
||||
#ifdef MS_WINDOWS /* Only ask on Windows if env var set */
|
||||
getenv("PYTHONDUMPREFS") &&
|
||||
#endif /* MS_WINDOWS */
|
||||
_Py_AskYesNo("Print left references?")) {
|
||||
_Py_PrintReferences(stderr);
|
||||
}
|
||||
#endif /* Py_TRACE_REFS */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue