Navigation Menu

Skip to content

Commit

Permalink
Close stderr and stdout at shutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
Yamagi committed Jun 20, 2012
1 parent 5d85a66 commit 847128c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/windows/system.c
Expand Up @@ -94,6 +94,10 @@ Sys_Error(char *error, ...)
/* shut down QHOST hooks if necessary */ /* shut down QHOST hooks if necessary */
DeinitConProc(); DeinitConProc();


/* Close stdout and stderr */
fclose(stdout);
fclose(stderr);

exit(1); exit(1);
} }


Expand All @@ -117,6 +121,10 @@ Sys_Quit(void)
/* shut down QHOST hooks if necessary */ /* shut down QHOST hooks if necessary */
DeinitConProc(); DeinitConProc();


/* Close stdout and stderr */
fclose(stdout);
fclose(stderr);

exit(0); exit(0);
} }


Expand Down

0 comments on commit 847128c

Please sign in to comment.