Browse Source

* disable buffering for logfile

master
Alex 'AdUser' Z 8 years ago
parent
commit
133ef989e8
  1. 1
      src/log.c

1
src/log.c

@ -83,6 +83,7 @@ void f2b_log_to_file(const char *path) {
if (path == NULL || *path == '\0')
return;
if ((new = fopen(path, "a")) != NULL) {
setvbuf(new, NULL , _IONBF, 0);
if (logfile && logfile != stderr)
fclose(logfile);
dest = log_file;

Loading…
Cancel
Save