Merge pull request #1472 from metalefty/fflush
common: flush stream in g_deinit()
This commit is contained in:
commit
e3e8ed0758
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user