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

make sure that slurmdbd agent has exited before returning (and possibly

  removing the data it needs).
parent f771a612
No related branches found
No related tags found
No related merge requests found
......@@ -894,9 +894,14 @@ static void _shutdown_agent(void)
agent_tid = 0;
}
if (agent_tid) {
debug2("slurmdbd: agent failed to shutdown gracefully");
} else
agent_shutdown = 0;
/* Agent thread is not ending quickly, perhaps due to
* communication problems with slurmdbd. Cancel it and
* join before returning or we could remove the plugin
* and leave the agent without valid data */
debug("slurmdbd: agent failed to shutdown gracefully");
pthread_cancel(agent_tid);
pthread_join(agent_tid, NULL);
}
}
}
......
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