diff options
author | Jesse Noller <jnoller@gmail.com> | 2009-03-31 22:20:35 (GMT) |
---|---|---|
committer | Jesse Noller <jnoller@gmail.com> | 2009-03-31 22:20:35 (GMT) |
commit | 42f9b4e5b4fff45ef4a071112787de6b29a5099a (patch) | |
tree | d5c6d7fa45a9cea2084bbabbf9c85c647fc38ba4 /Modules/_multiprocessing/win32_functions.c | |
parent | b7715865e77a7516859710122b07bd0963936209 (diff) | |
download | cpython-42f9b4e5b4fff45ef4a071112787de6b29a5099a.zip cpython-42f9b4e5b4fff45ef4a071112787de6b29a5099a.tar.gz cpython-42f9b4e5b4fff45ef4a071112787de6b29a5099a.tar.bz2 |
Issue 5619: Pass MS CRT debug flags into subprocesses
Diffstat (limited to 'Modules/_multiprocessing/win32_functions.c')
-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 513fc02..549c151 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; |