Skip to content
Snippets Groups Projects
Commit 8cbece81 authored by Moe Jette's avatar Moe Jette
Browse files
parent 5c38c5f7
No related branches found
No related tags found
No related merge requests found
......@@ -270,6 +270,7 @@ documents those changes that are of interest to users and admins.
-- If job prolog or epilog fail, log the program's exit code.
-- In jobacct/gold map job names containing any non-alphanumeric characters
to '_' to avoid MySQL parsing problems.
-- In jobacct/linux correct parsing if command name contains spaces.
* Changes in SLURM 1.2.28
=========================
......
......@@ -178,8 +178,10 @@ static void *_msg_thread(void *no_data)
err_code = 0;
err_msg = "";
msg = _recv_msg(new_fd);
_proc_msg(new_fd, msg);
xfree(msg);
if (msg) {
_proc_msg(new_fd, msg);
xfree(msg);
}
slurm_close_accepted_conn(new_fd);
}
if (sock_fd > 0)
......
......@@ -181,8 +181,10 @@ static void *_msg_thread(void *no_data)
err_code = 0;
err_msg = "";
msg = _recv_msg(new_fd);
_proc_msg(new_fd, msg);
xfree(msg);
if (msg) {
_proc_msg(new_fd, msg);
xfree(msg);
}
slurm_close_accepted_conn(new_fd);
}
verbose("wiki: message engine shutdown");
......
......@@ -980,7 +980,7 @@ _fork_all_tasks(slurmd_job_t *job)
if (slurm_container_add(job, job->task[i]->pid)
== SLURM_ERROR) {
error("slurm_container_create: %m");
error("slurm_container_add: %m");
goto fail1;
}
jobacct_id.nodeid = job->nodeid;
......
......@@ -1032,6 +1032,14 @@ _handle_suspend(int fd, slurmd_job_t *job, uid_t uid)
goto done;
}
if (cont_id == 0) {
debug ("step %u.%u invalid container [cont_id:%u]",
job->jobid, job->stepid, job->cont_id);
rc = -1;
errnum = ESLURMD_JOB_NOTRUNNING;
goto done;
}
jobacct_gather_g_suspend_poll();
/*
......@@ -1089,6 +1097,14 @@ _handle_resume(int fd, slurmd_job_t *job, uid_t uid)
goto done;
}
if (job->cont_id == 0) {
debug ("step %u.%u invalid container [cont_id:%u]",
job->jobid, job->stepid, job->cont_id);
rc = -1;
errnum = ESLURMD_JOB_NOTRUNNING;
goto done;
}
jobacct_gather_g_resume_poll();
/*
* Signal the container
......
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