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
e2e3cf30
Commit
e2e3cf30
authored
22 years ago
by
Moe Jette
Browse files
Options
Downloads
Patches
Plain Diff
General code clean-up, no logic changes.
parent
4831cb13
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/agent.c
+14
-17
14 additions, 17 deletions
src/slurmctld/agent.c
with
14 additions
and
17 deletions
src/slurmctld/agent.c
+
14
−
17
View file @
e2e3cf30
...
@@ -67,6 +67,12 @@
...
@@ -67,6 +67,12 @@
#include
"src/slurmctld/agent.h"
#include
"src/slurmctld/agent.h"
#include
"src/slurmctld/locks.h"
#include
"src/slurmctld/locks.h"
#define FREE_NULL(_X) \
do { \
if (_X) xfree (_X); \
_X = NULL; \
} while (0)
#if COMMAND_TIMEOUT == 1
#if COMMAND_TIMEOUT == 1
# define WDOG_POLL 1
/* secs */
# define WDOG_POLL 1
/* secs */
#else
#else
...
@@ -245,10 +251,8 @@ void *agent(void *args)
...
@@ -245,10 +251,8 @@ void *agent(void *args)
cleanup:
cleanup:
#if AGENT_IS_THREAD
#if AGENT_IS_THREAD
if
(
agent_arg_ptr
)
{
if
(
agent_arg_ptr
)
{
if
(
agent_arg_ptr
->
slurm_addr
)
FREE_NULL
(
agent_arg_ptr
->
slurm_addr
);
xfree
(
agent_arg_ptr
->
slurm_addr
);
FREE_NULL
(
agent_arg_ptr
->
node_names
);
if
(
agent_arg_ptr
->
node_names
)
xfree
(
agent_arg_ptr
->
node_names
);
if
(
agent_arg_ptr
->
msg_args
)
{
if
(
agent_arg_ptr
->
msg_args
)
{
if
(
agent_arg_ptr
->
msg_type
==
if
(
agent_arg_ptr
->
msg_type
==
REQUEST_BATCH_JOB_LAUNCH
)
REQUEST_BATCH_JOB_LAUNCH
)
...
@@ -262,8 +266,7 @@ void *agent(void *args)
...
@@ -262,8 +266,7 @@ void *agent(void *args)
#endif
#endif
if
(
agent_info_ptr
)
{
if
(
agent_info_ptr
)
{
if
(
agent_info_ptr
->
thread_struct
)
FREE_NULL
(
agent_info_ptr
->
thread_struct
);
xfree
(
agent_info_ptr
->
thread_struct
);
xfree
(
agent_info_ptr
);
xfree
(
agent_info_ptr
);
}
}
return
NULL
;
return
NULL
;
...
@@ -610,13 +613,10 @@ static void _list_delete_retry(void *retry_entry)
...
@@ -610,13 +613,10 @@ static void _list_delete_retry(void *retry_entry)
agent_arg_t
*
agent_arg_ptr
;
/* pointer to part_record */
agent_arg_t
*
agent_arg_ptr
;
/* pointer to part_record */
agent_arg_ptr
=
(
agent_arg_t
*
)
retry_entry
;
agent_arg_ptr
=
(
agent_arg_t
*
)
retry_entry
;
if
(
agent_arg_ptr
->
slurm_addr
)
FREE_NULL
(
agent_arg_ptr
->
slurm_addr
);
xfree
(
agent_arg_ptr
->
slurm_addr
);
FREE_NULL
(
agent_arg_ptr
->
node_names
);
if
(
agent_arg_ptr
->
node_names
)
xfree
(
agent_arg_ptr
->
node_names
);
#if AGENT_IS_THREAD
#if AGENT_IS_THREAD
if
(
agent_arg_ptr
->
msg_args
)
FREE_NULL
(
agent_arg_ptr
->
msg_args
);
xfree
(
agent_arg_ptr
->
msg_args
);
#endif
#endif
xfree
(
agent_arg_ptr
);
xfree
(
agent_arg_ptr
);
}
}
...
@@ -710,11 +710,8 @@ static void _slurmctld_free_job_launch_msg(batch_job_launch_msg_t * msg)
...
@@ -710,11 +710,8 @@ static void _slurmctld_free_job_launch_msg(batch_job_launch_msg_t * msg)
{
{
if
(
msg
)
{
if
(
msg
)
{
if
(
msg
->
environment
)
{
if
(
msg
->
environment
)
{
if
(
msg
->
environment
[
0
])
FREE_NULL
(
msg
->
environment
[
0
]);
xfree
(
msg
->
environment
[
0
]);
FREE_NULL
(
msg
->
environment
);
xfree
(
msg
->
environment
);
msg
->
environment
=
NULL
;
}
}
slurm_free_job_launch_msg
(
msg
);
slurm_free_job_launch_msg
(
msg
);
}
}
...
...
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