diff -r ad855c779bf3 PC/launcher.c --- a/PC/launcher.c Thu Dec 03 17:32:05 2015 -0800 +++ b/PC/launcher.c Fri Dec 04 09:20:34 2015 -0600 @@ -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 @@ -1354,6 +1354,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;