mirror of
https://github.com/amadvance/snapraid.git
synced 2026-12-01 12:26:38 -05:00
Use manual line buffering for stdout/stderr.
This is needed for Windows where line buffering is not supported.
This commit is contained in:
parent
20a565a8c1
commit
21ce043725
6 changed files with 34 additions and 29 deletions
|
|
@ -958,11 +958,6 @@ int devquery(tommy_list* high, tommy_list* low, int operation)
|
|||
void os_init(int opt)
|
||||
{
|
||||
(void)opt;
|
||||
|
||||
/* set stdout and stderr as "line buffered" */
|
||||
/* this ensures that messages are mixed correctly */
|
||||
setvbuf(stdout, 0, _IOLBF, BUFSIZ);
|
||||
setvbuf(stderr, 0, _IOLBF, BUFSIZ);
|
||||
}
|
||||
|
||||
void os_done(void)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue