Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Slurm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tud-zih-energy
Slurm
Commits
b2df914c
Commit
b2df914c
authored
15 years ago
by
Danny Auble
Browse files
Options
Downloads
Patches
Plain Diff
patch for cleaner code to exit out of the association cache thread in the slurmctld
parent
e869432a
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/slurmctld/controller.c
+6
-4
6 additions, 4 deletions
src/slurmctld/controller.c
with
6 additions
and
4 deletions
src/slurmctld/controller.c
+
6
−
4
View file @
b2df914c
...
...
@@ -210,7 +210,8 @@ int main(int argc, char *argv[])
slurmctld_lock_t
config_write_lock
=
{
WRITE_LOCK
,
WRITE_LOCK
,
WRITE_LOCK
,
WRITE_LOCK
};
assoc_init_args_t
assoc_init_arg
;
pthread_t
assoc_cache_thread
=
(
pthread_t
)
0
;
pthread_t
assoc_cache_thread
;
/*
* Establish initial configuration
*/
...
...
@@ -520,9 +521,10 @@ int main(int argc, char *argv[])
pthread_join
(
slurmctld_config
.
thread_id_rpc
,
NULL
);
pthread_join
(
slurmctld_config
.
thread_id_save
,
NULL
);
pthread_join
(
slurmctld_config
.
thread_id_power
,
NULL
);
if
(
assoc_cache_thread
)
{
/* end the thread here just say we aren't
* running cache so it ends */
if
(
running_cache
)
{
/* break out and end the association cache
* thread since we are shuting down, no reason
* to wait for current info from the database */
slurm_mutex_lock
(
&
assoc_cache_mutex
);
running_cache
=
(
uint16_t
)
NO_VAL
;
pthread_cond_signal
(
&
assoc_cache_cond
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment