Step 0: devel/bmake

This commit is contained in:
Lionel Sambuc 2015-08-30 21:11:14 +00:00 committed by Lionel Sambuc
parent 4c29fc3eef
commit c94e9e0e1c

View File

@ -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");