From 31195be25b5cd8e88426ab2496eaeb4d508b0764 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sun, 1 Jun 2003 04:09:55 +0000 Subject: Update. 2003-05-31 Ulrich Drepper * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (SA_NOCLDWAIT): Define. --- nptl/sysdeps/unix/sysv/linux/lowlevellock.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nptl/sysdeps/unix/sysv/linux/lowlevellock.c') diff --git a/nptl/sysdeps/unix/sysv/linux/lowlevellock.c b/nptl/sysdeps/unix/sysv/linux/lowlevellock.c index eb3e689b9e..ad7510abfe 100644 --- a/nptl/sysdeps/unix/sysv/linux/lowlevellock.c +++ b/nptl/sysdeps/unix/sysv/linux/lowlevellock.c @@ -44,7 +44,7 @@ int __lll_timedlock_wait (int *futex, int val, const struct timespec *abstime) { /* Reject invalid timeouts. */ - if (abstime->tv_nsec >= 1000000000) + if (abstime->tv_nsec < 0 || abstime->tv_nsec >= 1000000000) return EINVAL; do @@ -100,7 +100,7 @@ __lll_timedwait_tid (int *tidp, const struct timespec *abstime) { int tid; - if (abstime->tv_nsec >= 1000000000) + if (abstime->tv_nsec < 0 || abstime->tv_nsec >= 1000000000) return EINVAL; /* Repeat until thread terminated. */ -- cgit v1.2.3-70-g09d2