mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-25 17:36:26 -05:00
Change the flush logic for streams
Now stdout and stderr are always line buffered, and stdlog only flushed on request.
This commit is contained in:
parent
80d51384ac
commit
798de7ca99
16 changed files with 40 additions and 20 deletions
|
|
@ -63,6 +63,12 @@ void flog(const char* format, ...)
|
|||
}
|
||||
}
|
||||
|
||||
void fflush_log(void)
|
||||
{
|
||||
if (stdlog)
|
||||
fflush(stdlog);
|
||||
}
|
||||
|
||||
void ftag(const char* format, ...)
|
||||
{
|
||||
va_list ap;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue