diff options
Diffstat (limited to '')
-rw-r--r-- | src/myfprintf.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/myfprintf.c b/src/myfprintf.c index a959b6609..c333e9c7f 100644 --- a/src/myfprintf.c +++ b/src/myfprintf.c @@ -122,3 +122,10 @@ int myfprintfCloseAndOpenLogFile() { return 0; } + +void myfprintfCloseLogFile() { + if(myfprintf_stdLogMode) { + while(fclose(myfprintf_out)<0 && errno==EINTR); + while(fclose(myfprintf_err)<0 && errno==EINTR); + } +} |