summaryrefslogtreecommitdiff
path: root/lib/libpthread/thread
diff options
context:
space:
mode:
authorDaniel Eischen <deischen@FreeBSD.org>2001-10-07 02:34:43 +0000
committerDaniel Eischen <deischen@FreeBSD.org>2001-10-07 02:34:43 +0000
commit7ae9a22df20ad86cdd33d94713f616a11f478e5f (patch)
treea6a4683c88e44063b06aca9ce67f339395e0f659 /lib/libpthread/thread
parent2fbfa5f8623cac1858c094addbe10e8a97b5eb17 (diff)
Notes
Diffstat (limited to 'lib/libpthread/thread')
-rw-r--r--lib/libpthread/thread/thr_kern.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libpthread/thread/thr_kern.c b/lib/libpthread/thread/thr_kern.c
index 9d317eda6cca..ec4c233fef08 100644
--- a/lib/libpthread/thread/thr_kern.c
+++ b/lib/libpthread/thread/thr_kern.c
@@ -716,6 +716,9 @@ thread_kern_poll(int wait_reqd)
*/
timeout_ms = INFTIM;
}
+ else if (pthread->wakeup_time.tv_sec - ts.tv_sec > 60000)
+ /* Limit maximum timeout to prevent rollover. */
+ timeout_ms = 60000;
else {
/*
* Calculate the time left for the next thread to