Date: Wed, 29 Jun 2016 22:54:02 +0000 (UTC) From: Bryan Drewery <bdrewery@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r302286 - head/contrib/bmake Message-ID: <201606292254.u5TMs2Pg034864@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201606292254.u5TMs2Pg034864>