diff options
author | wollman <wollman@FreeBSD.org> | 2001-01-23 17:36:07 +0000 |
---|---|---|
committer | wollman <wollman@FreeBSD.org> | 2001-01-23 17:36:07 +0000 |
commit | 27b9f7486eb3481018402e07d910d747649d5acc (patch) | |
tree | 26b639778d6a68c551e7817c5afaf6a92fd269be | |
parent | b20ff502723bbbabd299b65adc64a9d4f99e0f66 (diff) | |
download | FreeBSD-src-27b9f7486eb3481018402e07d910d747649d5acc.zip FreeBSD-src-27b9f7486eb3481018402e07d910d747649d5acc.tar.gz |
I made a last-minute change before the last commit which broke
the errno semantics. Get it (closer to) right this time.
-rw-r--r-- | lib/libc/gen/pselect.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/libc/gen/pselect.c b/lib/libc/gen/pselect.c index 82cc0c6..02456e2 100644 --- a/lib/libc/gen/pselect.c +++ b/lib/libc/gen/pselect.c @@ -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; |