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
bbda4331
Commit
bbda4331
authored
20 years ago
by
Mark Grondona
Browse files
Options
Downloads
Patches
Plain Diff
o fix for file descriptor leak in slurmd.c (service_connection)
parent
3a5349d9
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
NEWS
+1
-0
1 addition, 0 deletions
NEWS
src/slurmd/slurmd.c
+8
-13
8 additions, 13 deletions
src/slurmd/slurmd.c
with
9 additions
and
13 deletions
NEWS
+
1
−
0
View file @
bbda4331
...
@@ -18,6 +18,7 @@ documents those changes that are of interest to users and admins.
...
@@ -18,6 +18,7 @@ documents those changes that are of interest to users and admins.
still processing job completion. This will work properly for
still processing job completion. This will work properly for
shared nodes.
shared nodes.
-- Set SLURM_DISTRIBUTION environment varible for user tasks.
-- Set SLURM_DISTRIBUTION environment varible for user tasks.
-- Fix for file descriptor leak in slurmd.
* Changes in SLURM 0.3.0.0-pre9
* Changes in SLURM 0.3.0.0-pre9
===============================
===============================
...
...
This diff is collapsed.
Click to expand it.
src/slurmd/slurmd.c
+
8
−
13
View file @
bbda4331
...
@@ -320,24 +320,19 @@ _service_connection(void *arg)
...
@@ -320,24 +320,19 @@ _service_connection(void *arg)
conn_t
*
con
=
(
conn_t
*
)
arg
;
conn_t
*
con
=
(
conn_t
*
)
arg
;
slurm_msg_t
*
msg
=
xmalloc
(
sizeof
(
*
msg
));
slurm_msg_t
*
msg
=
xmalloc
(
sizeof
(
*
msg
));
if
((
rc
=
slurm_receive_msg
(
con
->
fd
,
msg
,
0
))
<
0
)
{
/* set msg connection fd to accepted fd. This allows
* possibility for slurmd_req () to close accepted connection
*/
msg
->
conn_fd
=
con
->
fd
;
if
((
rc
=
slurm_receive_msg
(
con
->
fd
,
msg
,
0
))
<
0
)
error
(
"slurm_receive_msg: %m"
);
error
(
"slurm_receive_msg: %m"
);
goto
done
;
else
}
else
{
msg
->
conn_fd
=
con
->
fd
;
slurmd_req
(
msg
,
con
->
cli_addr
);
slurmd_req
(
msg
,
con
->
cli_addr
);
}
/*
* Check to see if fd already closed
*/
if
(
msg
->
conn_fd
<
0
)
goto
done
;
if
(
slurm_close_accepted_conn
(
msg
->
conn_fd
)
<
0
)
if
(
(
msg
->
conn_fd
>=
0
)
&&
slurm_close_accepted_conn
(
msg
->
conn_fd
)
<
0
)
error
(
"close(%d): %m"
,
con
->
fd
);
error
(
"close(%d): %m"
,
con
->
fd
);
done:
xfree
(
con
->
cli_addr
);
xfree
(
con
->
cli_addr
);
xfree
(
con
);
xfree
(
con
);
slurm_free_msg
(
msg
);
slurm_free_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