mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-26 18:06:28 -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
|
|
@ -924,7 +924,7 @@ int main(int argc, char* argv[])
|
|||
ftag("command:%s\n", command);
|
||||
for (i = 0; i < argc; ++i)
|
||||
ftag("argv:%u:%s\n", i, argv[i]);
|
||||
fflush(stdlog);
|
||||
fflush_log();
|
||||
|
||||
if (!opt.skip_self)
|
||||
selftest();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue