aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eischen <deischen@FreeBSD.org>2000-11-09 05:00:06 +0000
committerDaniel Eischen <deischen@FreeBSD.org>2000-11-09 05:00:06 +0000
commit9a6b83bf3bc1711402ddd532adf345c86c8398f1 (patch)
tree875ef77e768c6fa9a3637cf35b70191ed2eb3389
parenta5a18d3cbba52d029f18d8f88bc747b052ffe751 (diff)
Notes
-rw-r--r--lib/libc_r/uthread/uthread_kevent.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libc_r/uthread/uthread_kevent.c b/lib/libc_r/uthread/uthread_kevent.c
index 796c12c81fa9..290094d745cf 100644
--- a/lib/libc_r/uthread/uthread_kevent.c
+++ b/lib/libc_r/uthread/uthread_kevent.c
@@ -55,8 +55,9 @@ kevent(int kq, const struct kevent *changelist, int nchanges,
_thread_run->data.fd.branch = __LINE__;
do {
- /* Reset the interrupted operation flag: */
+ /* Reset the interrupted and timeout flags: */
_thread_run->interrupted = 0;
+ _thread_run->timeout = 0;
_thread_kern_sched_state(PS_FDR_WAIT,
__FILE__, __LINE__);
@@ -68,7 +69,7 @@ kevent(int kq, const struct kevent *changelist, int nchanges,
}
rc = _thread_sys_kevent(kq, NULL, 0,
eventlist, nevents, &nullts);
- } while (rc == 0 && timeout != NULL);
+ } while (rc == 0 && _thread_run->timeout == 0);
}
return (rc);
}