Skip to content
Snippets Groups Projects
Commit 96e7f236 authored by Moe Jette's avatar Moe Jette
Browse files
parent 8c5f67f3
No related branches found
No related tags found
No related merge requests found
...@@ -89,6 +89,8 @@ documents those changes that are of interest to users and admins. ...@@ -89,6 +89,8 @@ documents those changes that are of interest to users and admins.
job submissions are unable to set the proper environment variables. job submissions are unable to set the proper environment variables.
-- Fix problem in parallel make of Slurm. -- Fix problem in parallel make of Slurm.
-- Fixed bug in consumable resources when CR_Core_Memory is enabled -- Fixed bug in consumable resources when CR_Core_Memory is enabled
-- Add delay in slurmctld for "scontrol shutdown" RPC to get propagated
to slurmd daemons.
* Changes in SLURM 1.2.17 * Changes in SLURM 1.2.17
========================= =========================
......
...@@ -1191,8 +1191,7 @@ void agent_queue_request(agent_arg_t *agent_arg_ptr) ...@@ -1191,8 +1191,7 @@ void agent_queue_request(agent_arg_t *agent_arg_ptr)
{ {
queued_request_t *queued_req_ptr = NULL; queued_request_t *queued_req_ptr = NULL;
if ((agent_cnt < MAX_AGENT_CNT) || /* execute now */ if (agent_arg_ptr->msg_type == REQUEST_SHUTDOWN) { /* execute now */
(agent_arg_ptr->msg_type == REQUEST_SHUTDOWN)) {
pthread_attr_t attr_agent; pthread_attr_t attr_agent;
pthread_t thread_agent; pthread_t thread_agent;
int rc; int rc;
...@@ -1203,8 +1202,12 @@ void agent_queue_request(agent_arg_t *agent_arg_ptr) ...@@ -1203,8 +1202,12 @@ void agent_queue_request(agent_arg_t *agent_arg_ptr)
rc = pthread_create(&thread_agent, &attr_agent, rc = pthread_create(&thread_agent, &attr_agent,
agent, (void *) agent_arg_ptr); agent, (void *) agent_arg_ptr);
slurm_attr_destroy(&attr_agent); slurm_attr_destroy(&attr_agent);
if (rc == 0) if (rc == 0) {
sleep(1);
if (!pthread_kill(thread_agent, 0))
info("Shutdown agent still running");
return; return;
}
} }
queued_req_ptr = xmalloc(sizeof(queued_request_t)); queued_req_ptr = xmalloc(sizeof(queued_request_t));
......
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