diff options
author | Bryan Drewery <bdrewery@FreeBSD.org> | 2016-06-29 22:54:01 +0000 |
---|---|---|
committer | Bryan Drewery <bdrewery@FreeBSD.org> | 2016-06-29 22:54:01 +0000 |
commit | eb39a64db814405cba7a996ba0cec047f60d27c4 (patch) | |
tree | 2826f35b129ce8a2ba37d9ff7e5fe6b9b7c5e929 /contrib/bmake | |
parent | 78ed2a6fc44879da0e78261777fe64c2f6a9367d (diff) | |
download | src-eb39a64db814405cba7a996ba0cec047f60d27c4.tar.gz src-eb39a64db814405cba7a996ba0cec047f60d27c4.zip |
Flush every line when using meta mode and no -j or with -B.
Otherwise the output is buffered and it appears that make is stuck on something
long-running. This problem is not present with -j as it uses different
code that was already flushing.
Discussed with: sjg
Approved by: re (blanket, META_MODE)
Sponsored by: EMC / Isilon Storage Division
Notes
Notes:
svn path=/head/; revision=302286
Diffstat (limited to 'contrib/bmake')
-rw-r--r-- | contrib/bmake/meta.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/bmake/meta.c b/contrib/bmake/meta.c index 3084a57ef42a..13b955d740e8 100644 --- a/contrib/bmake/meta.c +++ b/contrib/bmake/meta.c @@ -1547,6 +1547,7 @@ meta_compat_parent(void) while (fgets(buf, sizeof(buf), fp)) { meta_job_output(NULL, buf, ""); printf("%s", buf); + (void)fflush(stdout); } fclose(fp); } |