r15251@tombo: nickm | 2008-04-22 11:59:46 -0400
commit299014b2c784c0bb72188f4db55d099b69a4e7f4
authorNick Mathewson <nickm@torproject.org>
Tue, 22 Apr 2008 15:59:59 +0000 (22 15:59 +0000)
committerNick Mathewson <nickm@torproject.org>
Tue, 22 Apr 2008 15:59:59 +0000 (22 15:59 +0000)
tree5e79a3296656046eb9a3017fa675e5528ef6060c
parent0cbecbe050cfae1ae3919615a5eafdfea738d63b
 r15251@tombo:  nickm | 2008-04-22 11:59:46 -0400
 On platforms using pthreads, allow a thread to acquire a lock it already holds.  This is crucial for logging: otherwise any log message thrown from inside the logging process (especially from control.c) will deadlock.  Win32 CriticalSections are already recursive.  Bug spotted by nwf.  Bugfix on 0.2.0.16-alpha.  Backport candidate. I hope this is portable.

svn:r14406
ChangeLog
src/common/compat.c