Skip to content
Snippets Groups Projects
Commit 83400184 authored by Morris Jette's avatar Morris Jette
Browse files

Add signal number to error message

This will improve ability to diagnose problems if the srun is
killed by a signal.
parent 344d2eab
No related branches found
No related tags found
No related merge requests found
......@@ -80,7 +80,7 @@ static void _signal_while_allocating(int signo)
if (signo == SIGCONT)
return;
destroy_step = 1;
destroy_step = signo;
}
static void
......@@ -272,7 +272,8 @@ slurm_step_ctx_create_timeout (const slurm_step_ctx_params_t *step_params,
}
xsignal_block(step_signals);
if (destroy_step) {
info("Cancelled pending job step");
info("Cancelled pending job step with signal %d",
destroy_step);
errno = ESLURM_ALREADY_DONE;
} else
rc = slurm_job_step_create(step_req, &step_resp);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment