diff options
author | sobomax <sobomax@FreeBSD.org> | 2001-09-14 13:25:15 +0000 |
---|---|---|
committer | sobomax <sobomax@FreeBSD.org> | 2001-09-14 13:25:15 +0000 |
commit | cbc9d03f454736abcba96c9c825ac4ea26356cdc (patch) | |
tree | 33ca56eb96bf9b6aaebeb18e3a26f38eff4933e8 /news/pan2 | |
parent | d7900b2b6c7b8844f5913189c4d50e6e5cc90ac5 (diff) | |
download | FreeBSD-ports-cbc9d03f454736abcba96c9c825ac4ea26356cdc.zip FreeBSD-ports-cbc9d03f454736abcba96c9c825ac4ea26356cdc.tar.gz |
Fix a potential useless CPU time eating.
PR: 30554
Submitted by: Jose M. Alcaide <jose@we.lc.ehu.es>, Chris Vance
Diffstat (limited to 'news/pan2')
-rw-r--r-- | news/pan2/Makefile | 1 | ||||
-rw-r--r-- | news/pan2/files/patch-pan::queue.c | 14 |
2 files changed, 15 insertions, 0 deletions
diff --git a/news/pan2/Makefile b/news/pan2/Makefile index 2c9aa5b..679aa41 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 0000000..e4c2495 --- /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); + |