This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project iwhd.git.
The branch, master has been updated
via e914cb511e8785deef50a3c711d674ac056a697e (commit)
from 2f781a55e1966f19e2d8a9ed7fd2958563e3b9d4 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://repo.or.cz/w/iwhd.git/commit/e914cb511e8785deef50a3c711d674ac056a697e
commit e914cb511e8785deef50a3c711d674ac056a697e
Author: Jim Meyering <meyering(a)redhat.com>
Date: Tue Oct 5 19:21:46 2010 +0200
fix bug just introduced in repl_worker
* proxy.c (repl_worker): Don't omit "item" parameter in
call to pthread_create. Introduced by me in commit aeb23797.
Spotted by Jeff Darcy.
diff --git a/proxy.c b/proxy.c
index fa25e54..cdcea5f 100644
--- a/proxy.c
+++ b/proxy.c
@@ -745,9 +745,9 @@ repl_worker_bcreate (repl_item *item)
}
/* Use this to diagnose failed thread creation. */
-#define xpthread_create(thread, start_routine, msg) +#define xpthread_create(thread,
start_routine, item, msg) do { - int err = pthread_create (thread, NULL,
start_routine, NULL); + int err = pthread_create (thread, NULL, start_routine, item);
if (err) { error (0, err, msg); return NULL; @@ -777,9
+777,10 @@ repl_worker (void *notused ATTRIBUTE_UNUSED)
xpthread_create(&prod, (proxy_host
? proxy_repl_prod
: proxy_repl_prod_fs),
- "failed to start producer thread");
- xpthread_create(&cons,proxy_repl_cons,
- "failed to start consumer thread");
+ item,
+ "failed to start producer thread");
+ xpthread_create(&cons,proxy_repl_cons,item,
+ "failed to start consumer thread");
pthread_join(prod,NULL);
pthread_join(cons,NULL);
}
-----------------------------------------------------------------------
Summary of changes:
proxy.c | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
repo.or.cz automatic notification. Contact project admin jim(a)meyering.net
if you want to unsubscribe, or site admin admin(a)repo.or.cz if you receive
no reply.
--
iwhd.git ("image warehouse daemon")