Skip to content
Snippets Groups Projects
Commit 3202195c authored by Jan Včelák's avatar Jan Včelák :rocket:
Browse files

remove unix control socket on shutdown

parent a5462c95
No related branches found
No related tags found
No related merge requests found
......@@ -367,6 +367,11 @@ int main(int argc, char **argv)
close(remote);
}
/* Remove control socket. */
if (remote > -1 && conf()->ctl.iface->family == AF_UNIX) {
unlink(conf()->ctl.iface->address);
}
if ((server_wait(server)) != KNOT_EOK) {
log_server_error("An error occured while "
"waiting for server to finish.\n");
......
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