Flush output buffer at each line
This commit is contained in:
parent
0581e74339
commit
a7a71b993f
|
@ -83,6 +83,7 @@ static int write_text(struct outbuf *out, const char *buf, FILE *fout)
|
||||||
|
|
||||||
if (*buf == '\n') {
|
if (*buf == '\n') {
|
||||||
fputc('\n', fout);
|
fputc('\n', fout);
|
||||||
|
fflush(fout);
|
||||||
out->buf[out->len] = 0;
|
out->buf[out->len] = 0;
|
||||||
if (capture_func)
|
if (capture_func)
|
||||||
capture_func(capture_data, out->buf);
|
capture_func(capture_data, out->buf);
|
||||||
|
|
Loading…
Reference in New Issue