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
b6c315b1
Commit
b6c315b1
authored
22 years ago
by
Moe Jette
Browse files
Options
Downloads
Patches
Plain Diff
Minor code restructuring to eliminate potential memory leak.
parent
ec11e5a8
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/slurmd/req.c
+6
-4
6 additions, 4 deletions
src/slurmd/req.c
with
6 additions
and
4 deletions
src/slurmd/req.c
+
6
−
4
View file @
b6c315b1
...
@@ -73,6 +73,8 @@ static void _wait_for_procs(uint32_t job_id, uid_t job_uid);
...
@@ -73,6 +73,8 @@ static void _wait_for_procs(uint32_t job_id, uid_t job_uid);
void
void
slurmd_req
(
slurm_msg_t
*
msg
,
slurm_addr
*
cli
)
slurmd_req
(
slurm_msg_t
*
msg
,
slurm_addr
*
cli
)
{
{
int
rc
;
switch
(
msg
->
msg_type
)
{
switch
(
msg
->
msg_type
)
{
case
REQUEST_BATCH_JOB_LAUNCH
:
case
REQUEST_BATCH_JOB_LAUNCH
:
_rpc_batch_job
(
msg
,
cli
);
_rpc_batch_job
(
msg
,
cli
);
...
@@ -112,11 +114,11 @@ slurmd_req(slurm_msg_t *msg, slurm_addr *cli)
...
@@ -112,11 +114,11 @@ slurmd_req(slurm_msg_t *msg, slurm_addr *cli)
break
;
break
;
case
REQUEST_NODE_REGISTRATION_STATUS
:
case
REQUEST_NODE_REGISTRATION_STATUS
:
/* Treat as ping (for slurmctld agent) */
/* Treat as ping (for slurmctld agent) */
if
(
_rpc_ping
(
msg
,
cli
)
==
SLURM_SUCCESS
)
{
rc
=
_rpc_ping
(
msg
,
cli
);
/* Then initiate a separate node registration */
slurm_free_node_registration_status_msg
(
msg
->
data
);
slurm_free_node_registration_status_msg
(
msg
->
data
);
/* Then initiate a separate node registration */
if
(
rc
==
SLURM_SUCCESS
)
send_registration_msg
(
SLURM_SUCCESS
);
send_registration_msg
(
SLURM_SUCCESS
);
}
break
;
break
;
case
REQUEST_PING
:
case
REQUEST_PING
:
_rpc_ping
(
msg
,
cli
);
_rpc_ping
(
msg
,
cli
);
...
...
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