diff options
author | Maxim Sobolev <sobomax@FreeBSD.org> | 2001-09-14 13:25:15 +0000 |
---|---|---|
committer | Maxim Sobolev <sobomax@FreeBSD.org> | 2001-09-14 13:25:15 +0000 |
commit | b135d533e0e70920b7523ff25054a7ad92a01156 (patch) | |
tree | 0e8a66c186357e2cc47984100b40efbd7b6dc3ea /news/pan/files | |
parent | Give 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/pan/files')
-rw-r--r-- | news/pan/files/patch-pan::queue.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/news/pan/files/patch-pan::queue.c b/news/pan/files/patch-pan::queue.c new file mode 100644 index 000000000000..e4c2495c0ec7 --- /dev/null +++ b/news/pan/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); + |