Fix for the stalled scenario in which 'options' might be reset to NULL inadvertently.
Thanks to MTT for picking this up. This commit was SVN r22002.
Этот коммит содержится в:
родитель
26bb6e8f79
Коммит
2769091261
@ -179,17 +179,19 @@ static void snapc_full_app_signal_handler (int signo)
|
||||
*/
|
||||
int snapc_full_app_notify_response(opal_cr_ckpt_cmd_state_t resp)
|
||||
{
|
||||
opal_crs_base_ckpt_options_t *options = NULL;
|
||||
static opal_crs_base_ckpt_options_t *options = NULL;
|
||||
static int cr_state;
|
||||
int app_pid;
|
||||
int ret, exit_status = ORTE_SUCCESS;
|
||||
|
||||
if( NULL == options ) {
|
||||
options = OBJ_NEW(opal_crs_base_ckpt_options_t);
|
||||
}
|
||||
|
||||
if( opal_cr_currently_stalled ) {
|
||||
goto STAGE_1;
|
||||
}
|
||||
|
||||
options = OBJ_NEW(opal_crs_base_ckpt_options_t);
|
||||
|
||||
OPAL_OUTPUT_VERBOSE((10, mca_snapc_full_component.super.output_handle,
|
||||
"App) notify_response: Stage 1..."));
|
||||
if( ORTE_SUCCESS != (ret = app_notify_resp_stage_1(resp, options) ) ) {
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user