Commit 3202195c authored by Jan Včelák's avatar Jan Včelák 🚀

remove unix control socket on shutdown

parent a5462c95
......@@ -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");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment