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);
 }
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to