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

Correction to job step exit code logic

Corrections to commit dbbd78e2
Index into array was using global task count rather than local
task count
parent c55ac4fb
No related branches found
No related tags found
No related merge requests found
......@@ -697,7 +697,7 @@ _handle_signal_container(int fd, stepd_step_rec_t *job, uid_t uid)
/* cycle thru the tasks and mark those that have not
* called abort and/or terminated as killed_by_cmd
*/
for (i = 0; i < job->ntasks; i++) {
for (i = 0; i < job->node_tasks; i++) {
if (NULL == (task = job->task[i])) {
continue;
}
......@@ -953,7 +953,7 @@ _handle_terminate(int fd, stepd_step_rec_t *job, uid_t uid)
/* cycle thru the tasks and mark those that have not
* called abort and/or terminated as killed_by_cmd
*/
for (i = 0; i < job->ntasks; i++) {
for (i = 0; i < job->node_tasks; i++) {
if (NULL == (task = job->task[i])) {
continue;
}
......
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