diff --git a/opal/util/stacktrace.c b/opal/util/stacktrace.c index 58f3c924b4..4ae9a97522 100644 --- a/opal/util/stacktrace.c +++ b/opal/util/stacktrace.c @@ -543,7 +543,7 @@ int opal_util_register_stackhandlers (void) opal_stacktrace_output_fileno = fileno(stdout); } else if( 0 == strcasecmp(opal_stacktrace_output_filename, "stderr") ) { - opal_stacktrace_output_fileno = fileno(stdout); + opal_stacktrace_output_fileno = fileno(stderr); } else if( 0 == strcasecmp(opal_stacktrace_output_filename, "file" ) || 0 == strcasecmp(opal_stacktrace_output_filename, "file:") ) {