mirror of
https://github.com/tio/tio.git
synced 2026-05-01 14:57:59 +02:00
Merge pull request #70 from hzeller/log-fast
Write to logfile as soon as we have the data, don't buffer.
This commit is contained in:
commit
96cec154d4
1 changed files with 1 additions and 0 deletions
|
|
@ -40,6 +40,7 @@ void log_open(const char *filename)
|
|||
log_error = true;
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
setvbuf(fp, NULL, _IONBF, 0);
|
||||
}
|
||||
|
||||
void log_write(char c)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue