From 907581140b88333008ae275b1b9018449025a90f Mon Sep 17 00:00:00 2001 From: Charlie Fenton Date: Fri, 4 Apr 2008 10:47:15 +0000 Subject: [PATCH] Added a comment svn path=/trunk/boinc/; revision=15016 --- lib/mac/mac_backtrace.C | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/mac/mac_backtrace.C b/lib/mac/mac_backtrace.C index 3377d907b4..55286af756 100644 --- a/lib/mac/mac_backtrace.C +++ b/lib/mac/mac_backtrace.C @@ -172,7 +172,9 @@ void PrintBacktrace(void) { strlcpy(saved_env, env, sizeof(saved_env)); } setenv("NSUnbufferedIO", "YES", 1); - + + // For some reason, using the -p option with the value from getpid() + // fails here but the -o option with a path does work. snprintf(pipeBuf, sizeof(pipeBuf), "/usr/bin/atos -o %s", pathToThisProcess); f = popen(pipeBuf, "r+"); if (f) {