Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
common-main.c: fflush stdout buffer when exit
By default, the buffer type of Windows' stdout is no buffer (_IONBF), and there is no need to manually fflush stdout. But some program, such as Windows Filtering Platform driver provided by the security software, may change the buffer type of stdout to Full buffering. Therefore, fflush(stdout) needs to be called manually, otherwise there will be no output to stdout. According to common sense, when the program exits, the stdout buffer should be automatically output and released, but not on Windows. So this commit will do it. Signed-off-by: MinarKotonoha <chengzhuo5@qq.com>
- Loading branch information