summaryrefslogtreecommitdiff
path: root/news/pan2
diff options
context:
space:
mode:
authorMaxim Sobolev <sobomax@FreeBSD.org>2001-09-14 13:25:15 +0000
committerMaxim Sobolev <sobomax@FreeBSD.org>2001-09-14 13:25:15 +0000
commitb135d533e0e70920b7523ff25054a7ad92a01156 (patch)
tree0e8a66c186357e2cc47984100b40efbd7b6dc3ea /news/pan2
parentGive maintainership to originator (diff)
Fix a potential useless CPU time eating.
PR: 30554 Submitted by: Jose M. Alcaide <jose@we.lc.ehu.es>, Chris Vance
Notes
Notes: svn path=/head/; revision=47834
Diffstat (limited to 'news/pan2')
-rw-r--r--news/pan2/Makefile1
-rw-r--r--news/pan2/files/patch-pan::queue.c14
2 files changed, 15 insertions, 0 deletions
diff --git a/news/pan2/Makefile b/news/pan2/Makefile
index 2c9aa5b4096c..679aa4172ed5 100644
--- a/news/pan2/Makefile
+++ b/news/pan2/Makefile
@@ -7,6 +7,7 @@
PORTNAME= pan
PORTVERSION= 0.10.0.90
+PORTREVISION= 1
CATEGORIES= news gnome
MASTER_SITES= http://pan.rebelbase.com/download/${PORTVERSION}/SOURCE/
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);
+