I made a last-minute change before the last commit which broke

the errno semantics.  Get it (closer to) right this time.
This commit is contained in:
Garrett Wollman 2001-01-23 17:36:07 +00:00
parent 1167992be6
commit 24b11d6ec6

View File

@ -61,13 +61,11 @@ pselect(int count, fd_set *rfds, fd_set *wfds, fd_set *efds,
return rv;
}
errno = 0;
rv = select(count, rfds, wfds, efds, tvp);
if (mask != 0) {
sverrno = errno;
sigprocmask(SIG_SETMASK, &omask, (sigset_t *)0);
if (sverrno)
errno = sverrno;
errno = sverrno;
}
return rv;