svn commit: r333467 - head/contrib/bmake

Matt Macy mmacy at FreeBSD.org
Thu May 10 17:57:47 UTC 2018


Author: mmacy
Date: Thu May 10 17:57:46 2018
New Revision: 333467
URL: https://svnweb.freebsd.org/changeset/base/333467

Log:
  Revert accidentally commited local change to bmake to prevent debilitating
  excess system time from poor API usage.
  
  Approved by:	sbruno@

Modified:
  head/contrib/bmake/job.c

Modified: head/contrib/bmake/job.c
==============================================================================
--- head/contrib/bmake/job.c	Thu May 10 17:55:24 2018	(r333466)
+++ head/contrib/bmake/job.c	Thu May 10 17:57:46 2018	(r333467)
@@ -2121,15 +2121,13 @@ Job_CatchOutput(void)
 {
     int nready;
     Job *job;
-    int i, pollToken;
+    int i;
 
     (void)fflush(stdout);
 
-	pollToken = 0;
-
     /* The first fd in the list is the job token pipe */
     do {
-	nready = poll(fds + 1 - pollToken, nfds - 1 + pollToken, POLL_MSEC);
+	nready = poll(fds + 1 - wantToken, nfds - 1 + wantToken, POLL_MSEC);
     } while (nready < 0 && errno == EINTR);
 
     if (nready < 0)


More information about the svn-src-head mailing list