From: Nick Mathewson Date: Mon, 30 Apr 2007 14:52:05 +0000 (+0000) Subject: r12570@catbus: nickm | 2007-04-30 10:49:50 -0400 X-Git-Tag: tor-0.2.0.1-alpha~217 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ee5a378665bfe4f4ed6d5c04619963d9c9a5757e;p=thirdparty%2Ftor.git r12570@catbus: nickm | 2007-04-30 10:49:50 -0400 Add an extra lock to try to get unit tessts passing reliably again. svn:r10062 --- diff --git a/src/or/test.c b/src/or/test.c index 21916c8a0e..f5e9d51230 100644 --- a/src/or/test.c +++ b/src/or/test.c @@ -1229,7 +1229,9 @@ _thread_test_func(void* _s) strmap_set(_thread_test_strmap, "last to run", cp); tor_mutex_release(_thread_test_mutex); } + tor_mutex_acquire(_thread_test_mutex); strmap_set(_thread_test_strmap, s, tor_strdup(buf)); + tor_mutex_release(_thread_test_mutex); tor_mutex_release(m);