mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-08-03 09:48:00 -04:00
Step 0: devel/bmake
This commit is contained in:
parent
4c29fc3eef
commit
c94e9e0e1c
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user