Close stderr and stdout at shutdown

This commit is contained in:
Yamagi Burmeister 2012-06-20 13:04:28 +02:00
parent 5d85a66fed
commit 847128cb76

View file

@ -94,6 +94,10 @@ Sys_Error(char *error, ...)
/* shut down QHOST hooks if necessary */
DeinitConProc();
/* Close stdout and stderr */
fclose(stdout);
fclose(stderr);
exit(1);
}
@ -117,6 +121,10 @@ Sys_Quit(void)
/* shut down QHOST hooks if necessary */
DeinitConProc();
/* Close stdout and stderr */
fclose(stdout);
fclose(stderr);
exit(0);
}