commit aca1b554999b90bde5a4c4eec3c3b05c9d17b1cf
Author: David Goulet <[email protected]>
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 <[email protected]>
---
 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);



_______________________________________________
tor-commits mailing list
[email protected]
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits

Reply via email to