diff options
author | Jesse Noller <jnoller@gmail.com> | 2009-03-31 22:36:44 (GMT) |
---|---|---|
committer | Jesse Noller <jnoller@gmail.com> | 2009-03-31 22:36:44 (GMT) |
commit | a931404804bd2243ae549af5e102860a68eb5fca (patch) | |
tree | 635742140701e813541e64a284d4e0d69fbfc9fb /Modules | |
parent | baf518046c9d5044572abcd74e7da1b097c946f6 (diff) | |
download | cpython-a931404804bd2243ae549af5e102860a68eb5fca.zip cpython-a931404804bd2243ae549af5e102860a68eb5fca.tar.gz cpython-a931404804bd2243ae549af5e102860a68eb5fca.tar.bz2 |
Merged revisions 70908 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r70908 | jesse.noller | 2009-03-31 17:20:35 -0500 (Tue, 31 Mar 2009) | 1 line
Issue 5619: Pass MS CRT debug flags into subprocesses
........
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_multiprocessing/win32_functions.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Modules/_multiprocessing/win32_functions.c b/Modules/_multiprocessing/win32_functions.c index 379a495..ba82c23 100644 --- a/Modules/_multiprocessing/win32_functions.c +++ b/Modules/_multiprocessing/win32_functions.c @@ -130,6 +130,12 @@ win32_ExitProcess(PyObject *self, PyObject *args) if (!PyArg_ParseTuple(args, "I", &uExitCode)) return NULL; + #if defined(Py_DEBUG) + SetErrorMode(SEM_FAILCRITICALERRORS|SEM_NOALIGNMENTFAULTEXCEPT|SEM_NOGPFAULTERRORBOX|SEM_NOOPENFILEERRORBOX); + _CrtSetReportMode(_CRT_ASSERT, _CRTDBG_MODE_DEBUG); + #endif + + ExitProcess(uExitCode); return NULL; |