Send show_help out thru stderr
Этот коммит содержится в:
родитель
4f1b63d9a2
Коммит
51b2bb1d41
@ -43,6 +43,7 @@
|
|||||||
#include "orte/util/show_help.h"
|
#include "orte/util/show_help.h"
|
||||||
|
|
||||||
bool orte_help_want_aggregate = false;
|
bool orte_help_want_aggregate = false;
|
||||||
|
static int orte_help_output;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Local variable to know whether aggregated show_help is available or
|
* Local variable to know whether aggregated show_help is available or
|
||||||
@ -447,7 +448,7 @@ static int show_help(const char *filename, const char *topic,
|
|||||||
fflush(orte_xml_fp);
|
fflush(orte_xml_fp);
|
||||||
free(tmp);
|
free(tmp);
|
||||||
} else {
|
} else {
|
||||||
opal_output(orte_clean_output, "%s", output);
|
opal_output(orte_help_output, "%s", output);
|
||||||
}
|
}
|
||||||
if (!show_help_timer_set) {
|
if (!show_help_timer_set) {
|
||||||
show_help_time_last_displayed = now;
|
show_help_time_last_displayed = now;
|
||||||
@ -537,6 +538,8 @@ cleanup:
|
|||||||
|
|
||||||
int orte_show_help_init(void)
|
int orte_show_help_init(void)
|
||||||
{
|
{
|
||||||
|
opal_output_stream_t lds;
|
||||||
|
|
||||||
OPAL_OUTPUT_VERBOSE((5, orte_debug_output, "orte_show_help init"));
|
OPAL_OUTPUT_VERBOSE((5, orte_debug_output, "orte_show_help init"));
|
||||||
|
|
||||||
/* Show help duplicate detection */
|
/* Show help duplicate detection */
|
||||||
@ -546,6 +549,12 @@ int orte_show_help_init(void)
|
|||||||
|
|
||||||
OBJ_CONSTRUCT(&abd_tuples, opal_list_t);
|
OBJ_CONSTRUCT(&abd_tuples, opal_list_t);
|
||||||
|
|
||||||
|
/* create an output stream for us */
|
||||||
|
OBJ_CONSTRUCT(&lds, opal_output_stream_t);
|
||||||
|
lds.lds_want_stderr = true;
|
||||||
|
orte_help_output = opal_output_open(&lds);
|
||||||
|
OBJ_DESTRUCT(&lds);
|
||||||
|
|
||||||
save_help = opal_show_help;
|
save_help = opal_show_help;
|
||||||
opal_show_help = orte_show_help;
|
opal_show_help = orte_show_help;
|
||||||
ready = true;
|
ready = true;
|
||||||
@ -560,6 +569,8 @@ void orte_show_help_finalize(void)
|
|||||||
}
|
}
|
||||||
ready = false;
|
ready = false;
|
||||||
|
|
||||||
|
opal_output_close(orte_help_output);
|
||||||
|
|
||||||
opal_show_help = save_help;
|
opal_show_help = save_help;
|
||||||
save_help = NULL;
|
save_help = NULL;
|
||||||
|
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user