[tor-commits] [torsocks/master] Fix: remove DBG call in syscall()

dgoulet at torproject.org dgoulet at torproject.org
Fri Apr 4 22:40:26 UTC 2014


commit aca1b554999b90bde5a4c4eec3c3b05c9d17b1cf
Author: David Goulet <dgoulet at ev0ke.net>
Date:   Sat Nov 2 23:03:49 2013 -0400

    Fix: remove DBG call in syscall()
    
    Since time is added by default, if a syscall() is called within the
    context of the libc, it could trigger a deadlock with the tzset lock
    already taken before calling localtime().
    
    This deadlock can be triggered with Firefox and a loglevel set to 5.
    
    Signed-off-by: David Goulet <dgoulet at ev0ke.net>
---
 src/lib/syscall.c |    2 --
 1 file changed, 2 deletions(-)

diff --git a/src/lib/syscall.c b/src/lib/syscall.c
index 674ee6e..67d3de2 100644
--- a/src/lib/syscall.c
+++ b/src/lib/syscall.c
@@ -109,8 +109,6 @@ LIBC_SYSCALL_RET_TYPE tsocks_syscall(long int __number, va_list args)
 {
 	LIBC_SYSCALL_RET_TYPE ret;
 
-	DBG("[syscall] Syscall libc wrapper number %ld called", __number);
-
 	switch (__number) {
 	case TSOCKS_NR_SOCKET:
 		ret = handle_socket(args);





More information about the tor-commits mailing list