mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-10 07:12:07 +00:00
Close stderr and stdout at shutdown
This commit is contained in:
parent
5d85a66fed
commit
847128cb76
1 changed files with 8 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue