Date: Thu, 10 May 2018 17:57:47 +0000 (UTC) From: Matt Macy <mmacy@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r333467 - head/contrib/bmake Message-ID: <201805101757.w4AHvlwq029042@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201805101757.w4AHvlwq029042>