Skip to content
Snippets Groups Projects
Commit 82f7c5cd authored by Nate Rini's avatar Nate Rini Committed by Tim Wickberg
Browse files

slurmrestd - unlink named unix sockets before closing.

Bug 9222.
parent 2ee505a3
No related branches found
No related tags found
No related merge requests found
......@@ -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
==========================
......
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment