]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
r12570@catbus: nickm | 2007-04-30 10:49:50 -0400
authorNick Mathewson <nickm@torproject.org>
Mon, 30 Apr 2007 14:52:05 +0000 (14:52 +0000)
committerNick Mathewson <nickm@torproject.org>
Mon, 30 Apr 2007 14:52:05 +0000 (14:52 +0000)
 Add an extra lock to try to get unit tessts passing reliably again.

svn:r10062

src/or/test.c

index 21916c8a0e9df3ce1425b4b922aff404518b9f90..f5e9d51230ae0cda56bda8f6f035bce6bd646200 100644 (file)
@@ -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);