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

Salloc to send SIGCONT before SIGHUP/TERM if suspended

If an salloc allocation is revoked and the job is in a suspended state,
send the child processes a SIGCONT before sending SIGHUP or SIGTERM so
that the processes can terminate immediately.
parent cd985559
No related branches found
No related tags found
No related merge requests found
...@@ -866,6 +866,8 @@ static void _job_complete_handler(srun_job_complete_msg_t *comp) ...@@ -866,6 +866,8 @@ static void _job_complete_handler(srun_job_complete_msg_t *comp)
verbose("Sending signal %d to command \"%s\"," verbose("Sending signal %d to command \"%s\","
" pid %d", " pid %d",
signal, command_argv[0], command_pid); signal, command_argv[0], command_pid);
if (suspend_flag)
_forward_signal(SIGCONT);
_forward_signal(signal); _forward_signal(signal);
} }
} }
......
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