Skip to content
Snippets Groups Projects
Commit 22e7800d authored by Mark Grondona's avatar Mark Grondona
Browse files

o exit immediately if job state indicates a forceful termination

parent c0804a6f
No related branches found
No related tags found
No related merge requests found
......@@ -206,11 +206,16 @@ int main(int ac, char **av)
/* job is now overdone, clean up
*
* If job "failed" send SIGKILL to any remaining tasks
* If job "failed" send SIGKILL to any remaining tasks.
* If job is "forcefully terminated" exit immediately.
*
*/
if (job->state == SRUN_JOB_FAILED) {
info("Terminating job");
fwd_signal(job, SIGKILL);
} else if (job->state == SRUN_JOB_FORCETERM) {
job_destroy(job, 0);
exit(1);
}
/* wait for launch thread */
......
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