summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/libc/gen/pselect.c4
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;
OpenPOWER on IntegriCloud