diff --git a/src/slurmd/req.c b/src/slurmd/req.c index 5e8ad327492f56272f670792b9d31d603fef8885..a6ab96dac1f2bef7cbe9f614a83bb61c097cfbdc 100644 --- a/src/slurmd/req.c +++ b/src/slurmd/req.c @@ -792,9 +792,11 @@ _kill_running_session_mgrs(uint32_t jobid, int signum, char *signame) int cnt = 0; while ((s = list_next(i))) { - if ((s->jobid == jobid) && s->cont_id) { - kill(s->spid, signum); - /* slurm_signal_container(s->cont_id, signum); */ + if (s->jobid == jobid) { + if (s->spid) + kill(s->spid, signum); + /* if (s->cont_id) */ + /* slurm_signal_container(s->cont_id, signum); */ cnt++; } }