svn commit: r302286 - head/contrib/bmake
Bryan Drewery
bdrewery at FreeBSD.org
Wed Jun 29 22:54:03 UTC 2016
Author: bdrewery
Date: Wed Jun 29 22:54:01 2016
New Revision: 302286
URL: https://svnweb.freebsd.org/changeset/base/302286
Log:
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
Modified:
head/contrib/bmake/meta.c
Modified: head/contrib/bmake/meta.c
==============================================================================
--- head/contrib/bmake/meta.c Wed Jun 29 22:39:22 2016 (r302285)
+++ head/contrib/bmake/meta.c Wed Jun 29 22:54:01 2016 (r302286)
@@ -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);
}
More information about the svn-src-all
mailing list