projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
select: fix 64-bit timeout truncation on pre-time64 kernels
[musl]
/
src
/
select
/
select.c
diff --git
a/src/select/select.c
b/src/select/select.c
index
8a78688
..
f1d7286
100644
(file)
--- a/
src/select/select.c
+++ b/
src/select/select.c
@@
-33,6
+33,7
@@
int select(int n, fd_set *restrict rfds, fd_set *restrict wfds, fd_set *restrict
((syscall_arg_t[]){ 0, _NSIG/8 }));
if (SYS_pselect6 == SYS_pselect6_time64 || r!=-ENOSYS)
return __syscall_ret(r);
+ s = CLAMP(s);
#endif
#ifdef SYS_select
return syscall_cp(SYS_select, n, rfds, wfds, efds,