* output.c (pump_from_tmp): [SV 42378] Flush the output file regularly.

Copyright-paperwork-exempt: yes
This commit is contained in:
Piotr Jaroszynski 2014-05-15 11:40:27 -07:00 committed by Paul Smith
parent e44d6a12bb
commit 8d577c2ff4

View file

@ -240,7 +240,11 @@ pump_from_tmp (int from, FILE *to)
if (len <= 0)
break;
if (fwrite (buffer, len, 1, to) < 1)
perror ("fwrite()");
{
perror ("fwrite()");
break;
}
fflush (to);
}
#ifdef WINDOWS32