summaryrefslogtreecommitdiffstats
path: root/Modules/_multiprocessing
diff options
context:
space:
mode:
authorKristján Valur Jónsson <kristjan@ccpgames.com>2009-07-04 15:16:38 (GMT)
committerKristján Valur Jónsson <kristjan@ccpgames.com>2009-07-04 15:16:38 (GMT)
commitb8e138aa238e23e9b3e53e012cd4e0b54ec28022 (patch)
tree8858575e95a59943468576ca305f929f257eabc4 /Modules/_multiprocessing
parent8c4f4178cbd22b49c19f56baa0b305cbb64b9e94 (diff)
downloadcpython-b8e138aa238e23e9b3e53e012cd4e0b54ec28022.zip
cpython-b8e138aa238e23e9b3e53e012cd4e0b54ec28022.tar.gz
cpython-b8e138aa238e23e9b3e53e012cd4e0b54ec28022.tar.bz2
Revert last change, which was incorrect.
Diffstat (limited to 'Modules/_multiprocessing')
-rw-r--r--Modules/_multiprocessing/win32_functions.c6
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;