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
82f7c5cd
Commit
82f7c5cd
authored
4 years ago
by
Nate Rini
Committed by
Tim Wickberg
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
slurmrestd - unlink named unix sockets before closing.
Bug 9222.
parent
2ee505a3
No related branches found
Branches containing commit
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/slurmrestd/conmgr.c
+5
-0
5 additions, 0 deletions
src/slurmrestd/conmgr.c
with
6 additions
and
0 deletions
NEWS
+
1
−
0
View file @
82f7c5cd
...
...
@@ -24,6 +24,7 @@ documents those changes that are of interest to users and administrators.
authentication is ill-formed.
-- slurmrestd - restrict ability of requests to use different authentication
plugins.
-- slurmrestd - unlink named unix sockets before closing.
* Changes in Slurm 20.02.3
==========================
...
...
This diff is collapsed.
Click to expand it.
src/slurmrestd/conmgr.c
+
5
−
0
View file @
82f7c5cd
...
...
@@ -355,6 +355,11 @@ static void _close_con(bool locked, con_mgr_fd_t *con)
_check_magic_mgr
(
con
->
mgr
);
}
/* unlink socket to avoid leaving ghost socket */
if
(
con
->
unix_socket
&&
(
unlink
(
con
->
unix_socket
)
==
-
1
))
error
(
"%s: unable to unlink %s: %m"
,
__func__
,
con
->
unix_socket
);
/* mark it as EOF even if it hasn't */
con
->
read_eof
=
true
;
...
...
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