From 27b9f7486eb3481018402e07d910d747649d5acc Mon Sep 17 00:00:00 2001 From: wollman Date: Tue, 23 Jan 2001 17:36:07 +0000 Subject: I made a last-minute change before the last commit which broke the errno semantics. Get it (closer to) right this time. --- lib/libc/gen/pselect.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'lib/libc') 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; -- cgit v1.1