From c94e9e0e1cc715b25454c8d785f9ac53778ed248 Mon Sep 17 00:00:00 2001 From: Lionel Sambuc Date: Sun, 30 Aug 2015 21:11:14 +0000 Subject: [PATCH] Step 0: devel/bmake --- devel/bmake/files/job.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/devel/bmake/files/job.c b/devel/bmake/files/job.c index 2d6ccd36b..fb34d3c28 100644 --- a/devel/bmake/files/job.c +++ b/devel/bmake/files/job.c @@ -2070,14 +2070,19 @@ Job_CatchOutput(void) do { nready = poll(fds + 1 - wantToken, nfds - 1 + wantToken, POLL_MSEC); } while (nready < 0 && errno == EINTR); - if (nready < 0) Punt("poll: %s", strerror(errno)); if (nready > 0 && readyfd(&childExitJob)) { char token = 0; ssize_t count; +#if defined(__minix) + do { + count = read(childExitJob.inPipe, &token, 1); + } while (count < 0 && errno == EAGAIN); +#else count = read(childExitJob.inPipe, &token, 1); +#endif /* defined(__minix) */ switch (count) { case 0: Punt("unexpected eof on token pipe");