summaryrefslogtreecommitdiffstats
path: root/contrib/bmake/meta.c
diff options
context:
space:
mode:
authorbdrewery <bdrewery@FreeBSD.org>2016-06-29 22:54:01 +0000
committerbdrewery <bdrewery@FreeBSD.org>2016-06-29 22:54:01 +0000
commitc3a4dbd1d230e103f5737bfb4eeea9b04df5cc8e (patch)
tree2826f35b129ce8a2ba37d9ff7e5fe6b9b7c5e929 /contrib/bmake/meta.c
parent3ef66a1afe8ca488ac8f32f63a18c5f0c7ee835f (diff)
downloadFreeBSD-src-c3a4dbd1d230e103f5737bfb4eeea9b04df5cc8e.zip
FreeBSD-src-c3a4dbd1d230e103f5737bfb4eeea9b04df5cc8e.tar.gz
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
Diffstat (limited to 'contrib/bmake/meta.c')
-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 3084a57..13b955d 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);
}
OpenPOWER on IntegriCloud