[tor-commits] [torbrowser/maint-2.2] [4093 Mac] Only make dyld log all library loads to syslog in debug mode

erinn at torproject.org erinn at torproject.org
Thu Sep 29 15:14:43 UTC 2011


commit 69d3f33a6425f4339bc602e71f4b833eacda38c4
Author: Robert Ransom <rransom.8774 at gmail.com>
Date:   Sun Sep 25 06:24:47 2011 -0700

    [4093 Mac] Only make dyld log all library loads to syslog in debug mode
---
 src/RelativeLink/RelativeLinkOSX.sh |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/src/RelativeLink/RelativeLinkOSX.sh b/src/RelativeLink/RelativeLinkOSX.sh
index dbaa84b..cac07a1 100755
--- a/src/RelativeLink/RelativeLinkOSX.sh
+++ b/src/RelativeLink/RelativeLinkOSX.sh
@@ -7,6 +7,9 @@
 #
 # To run in debug mode, simply pass -debug or --debug on the command line.
 #
+# WARNING: In debug mode, this script may cause dyld to write to the system
+#          log file.
+#
 # Copyright 2010 The Tor Project.  See LICENSE for licensing information.
 
 DEBUG_TBB=0
@@ -22,8 +25,11 @@ export HOME
 DYLD_LIBRARY_PATH=${HOME}/Contents/Frameworks
 export LDPATH
 export DYLD_LIBRARY_PATH
-DYLD_PRINT_LIBRARIES=1
-export DYLD_PRINT_LIBRARIES
+
+if [ "$DEBUG_TBB" -eq 1 ]; then
+	DYLD_PRINT_LIBRARIES=1
+	export DYLD_PRINT_LIBRARIES
+fi
 
 if [ "$DEBUG_TBB" -eq 1 ]; then
 	printf "\nStarting Vidalia now\n"





More information about the tor-commits mailing list