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:
parent
1167992be6
commit
24b11d6ec6
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user