The POSIX spec also requires that kern_sigtimedwait return
EINVAL if tv_nsec of the timeout is less than zero.
This commit is contained in:
parent
80366b6d6a
commit
a6ca48085c
@ -911,7 +911,7 @@ again:
|
||||
if (timeout) {
|
||||
struct timeval tv;
|
||||
|
||||
if (timeout->tv_nsec > 1000000000) {
|
||||
if (timeout->tv_nsec < 0 || timeout->tv_nsec > 1000000000) {
|
||||
error = EINVAL;
|
||||
goto out;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user