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:
Martin Lund 2018-06-24 13:16:19 +02:00 committed by GitHub
commit 96cec154d4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)