From: Guido van Rossum Date: Thu, 27 Apr 2000 23:44:15 +0000 (+0000) Subject: Mark Hammond: For Windows debug builds, we now only offer to dump X-Git-Tag: v2.0b1~1913 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=eca47847810f75c57f09241bb92d19e1cc90fa7e;p=thirdparty%2FPython%2Fcpython.git 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. --- diff --git a/Python/pythonrun.c b/Python/pythonrun.c index 0ae15fafa268..17d569d78f63 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -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 */