From fce28c31d0ec929de1adf1f9f71f56f0a8da2c8f Mon Sep 17 00:00:00 2001 From: Joshua Hursey Date: Mon, 22 May 2017 14:37:45 -0400 Subject: [PATCH] opal/stacktrace: Fix stderr target for opal_stacktrace_output Signed-off-by: Joshua Hursey --- opal/util/stacktrace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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:") ) {