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) {