blob: e4c2495c0ec7bf025905aad97da5abec7da7f952 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
$FreeBSD$
--- pan/queue.c 2001/09/14 13:20:29 1.1
+++ pan/queue.c 2001/09/14 13:20:44
@@ -1202,7 +1202,7 @@
pthread_mutex_lock (&queue_lock);
gettimeofday (&now, NULL);
timeout.tv_sec = now.tv_sec + TIMEOUT_SECS;
- timeout.tv_nsec = timeout.tv_sec;
+ timeout.tv_nsec = 0;
retcode = pthread_cond_timedwait(&qcond, &queue_lock, &timeout);
pthread_mutex_unlock (&queue_lock);
|