Skip to content
Snippets Groups Projects
Commit 10f139b1 authored by Moe Jette's avatar Moe Jette
Browse files

Test for session manager (user's) slurmd pid being set in shared memory

before trying to kill it. Otherwise it can kill the main slurmd.
parent 45ac53eb
No related branches found
No related tags found
No related merge requests found
...@@ -792,9 +792,11 @@ _kill_running_session_mgrs(uint32_t jobid, int signum, char *signame) ...@@ -792,9 +792,11 @@ _kill_running_session_mgrs(uint32_t jobid, int signum, char *signame)
int cnt = 0; int cnt = 0;
while ((s = list_next(i))) { while ((s = list_next(i))) {
if ((s->jobid == jobid) && s->cont_id) { if (s->jobid == jobid) {
kill(s->spid, signum); if (s->spid)
/* slurm_signal_container(s->cont_id, signum); */ kill(s->spid, signum);
/* if (s->cont_id) */
/* slurm_signal_container(s->cont_id, signum); */
cnt++; cnt++;
} }
} }
......
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