[Python-checkins] cpython: Closes #25789: Improved buffering behaviour in launcher.
vinay.sajip
python-checkins at python.org
Sat Dec 26 07:36:09 EST 2015
https://hg.python.org/cpython/rev/d0a84d0c5ceb
changeset: 99679:d0a84d0c5ceb
parent: 99677:b8d108a2a38e
user: Vinay Sajip <vinay_sajip at yahoo.co.uk>
date: Sat Dec 26 12:35:47 2015 +0000
summary:
Closes #25789: Improved buffering behaviour in launcher.
files:
PC/launcher.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/PC/launcher.c b/PC/launcher.c
--- a/PC/launcher.c
+++ b/PC/launcher.c
@@ -98,7 +98,7 @@
MessageBox(NULL, message, TEXT("Python Launcher is sorry to say ..."),
MB_OK);
#endif
- ExitProcess(rc);
+ exit(rc);
}
/*
@@ -652,7 +652,7 @@
if (!ok)
error(RC_CREATE_PROCESS, L"Failed to get exit code of process");
debug(L"child process exit code: %d\n", rc);
- ExitProcess(rc);
+ exit(rc);
}
static void
@@ -1357,6 +1357,7 @@
wchar_t * av[2];
#endif
+ setvbuf(stderr, (char *)NULL, _IONBF, 0);
wp = get_env(L"PYLAUNCH_DEBUG");
if ((wp != NULL) && (*wp != L'\0'))
log_fp = stderr;
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list