diff --git a/common/os_calls.c b/common/os_calls.c index 2b4e0e9b..88b96e61 100644 --- a/common/os_calls.c +++ b/common/os_calls.c @@ -166,6 +166,8 @@ g_deinit(void) #if defined(_WIN32) WSACleanup(); #endif + fflush(stdout); + fflush(stderr); g_rm_temp_dir(); } @@ -3398,7 +3400,7 @@ g_getenv(const char *name) int g_exit(int exit_code) { - _exit(exit_code); + exit(exit_code); return 0; }