mirror of https://github.com/python/cpython.git
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 ........
This commit is contained in:
parent
61611f84c9
commit
70b11f0f97
|
@ -674,6 +674,7 @@ Daniel Stutzbach
|
||||||
Nathan Sullivan
|
Nathan Sullivan
|
||||||
Mark Summerfield
|
Mark Summerfield
|
||||||
Hisao Suzuki
|
Hisao Suzuki
|
||||||
|
Andrew Svetlov
|
||||||
Kalle Svensson
|
Kalle Svensson
|
||||||
Paul Swartz
|
Paul Swartz
|
||||||
Thenault Sylvain
|
Thenault Sylvain
|
||||||
|
|
|
@ -92,6 +92,9 @@ Core and Builtins
|
||||||
Library
|
Library
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
- Issue #5619: Multiprocessing children disobey the debug flag and causes
|
||||||
|
popups on windows buildbots. Patch applied to work around this issue.
|
||||||
|
|
||||||
- Issue #5632: Thread.ident was None for the main thread and threads not created
|
- Issue #5632: Thread.ident was None for the main thread and threads not created
|
||||||
with the threading module.
|
with the threading module.
|
||||||
|
|
||||||
|
|
|
@ -130,6 +130,12 @@ win32_ExitProcess(PyObject *self, PyObject *args)
|
||||||
if (!PyArg_ParseTuple(args, "I", &uExitCode))
|
if (!PyArg_ParseTuple(args, "I", &uExitCode))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
|
#if defined(Py_DEBUG)
|
||||||
|
SetErrorMode(SEM_FAILCRITICALERRORS|SEM_NOALIGNMENTFAULTEXCEPT|SEM_NOGPFAULTERRORBOX|SEM_NOOPENFILEERRORBOX);
|
||||||
|
_CrtSetReportMode(_CRT_ASSERT, _CRTDBG_MODE_DEBUG);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
ExitProcess(uExitCode);
|
ExitProcess(uExitCode);
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
|
@ -1631,6 +1631,8 @@ void
|
||||||
Py_FatalError(const char *msg)
|
Py_FatalError(const char *msg)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "Fatal Python error: %s\n", msg);
|
fprintf(stderr, "Fatal Python error: %s\n", msg);
|
||||||
|
fflush(stderr); /* it helps in Windows debug build */
|
||||||
|
|
||||||
#ifdef MS_WINDOWS
|
#ifdef MS_WINDOWS
|
||||||
{
|
{
|
||||||
size_t len = strlen(msg);
|
size_t len = strlen(msg);
|
||||||
|
|
Loading…
Reference in New Issue