mirror of
https://github.com/tio/tio.git
synced 2026-05-01 14:57:59 +02:00
Force flushing of log writes
This commit is contained in:
parent
f454bdaa3a
commit
c24cbfcd34
1 changed files with 2 additions and 0 deletions
|
|
@ -149,6 +149,7 @@ void log_printf(const char *format, ...)
|
|||
va_end(args);
|
||||
|
||||
fwrite(line, strlen(line), 1, fp);
|
||||
fflush(fp);
|
||||
|
||||
free(line);
|
||||
}
|
||||
|
|
@ -169,6 +170,7 @@ void log_putc(char c)
|
|||
fputc(c, fp);
|
||||
}
|
||||
}
|
||||
fflush(fp);
|
||||
}
|
||||
|
||||
void log_close(void)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue