mirror of
https://git.savannah.gnu.org/git/make.git
synced 2024-11-25 04:35:44 +00:00
* output.c (pump_from_tmp): [SV 42378] Flush the output file regularly.
Copyright-paperwork-exempt: yes
This commit is contained in:
parent
e44d6a12bb
commit
8d577c2ff4
1 changed files with 5 additions and 1 deletions
6
output.c
6
output.c
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue