From b135d533e0e70920b7523ff25054a7ad92a01156 Mon Sep 17 00:00:00 2001 From: Maxim Sobolev Date: Fri, 14 Sep 2001 13:25:15 +0000 Subject: Fix a potential useless CPU time eating. PR: 30554 Submitted by: Jose M. Alcaide , Chris Vance --- news/pan2/files/patch-pan::queue.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 news/pan2/files/patch-pan::queue.c (limited to 'news/pan2/files/patch-pan::queue.c') diff --git a/news/pan2/files/patch-pan::queue.c b/news/pan2/files/patch-pan::queue.c new file mode 100644 index 000000000000..e4c2495c0ec7 --- /dev/null +++ b/news/pan2/files/patch-pan::queue.c @@ -0,0 +1,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); + -- cgit v1.2.3