aboutsummaryrefslogtreecommitdiff
path: root/contrib/bmake
diff options
context:
space:
mode:
authorBryan Drewery <bdrewery@FreeBSD.org>2016-06-29 22:54:01 +0000
committerBryan Drewery <bdrewery@FreeBSD.org>2016-06-29 22:54:01 +0000
commiteb39a64db814405cba7a996ba0cec047f60d27c4 (patch)
tree2826f35b129ce8a2ba37d9ff7e5fe6b9b7c5e929 /contrib/bmake
parent78ed2a6fc44879da0e78261777fe64c2f6a9367d (diff)
downloadsrc-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.c1
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);
}