summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2011-01-27 19:31:35 +0000
committerpjd <pjd@FreeBSD.org>2011-01-27 19:31:35 +0000
commitbd3443f5fe8612acf4d4765665cf0eec5ead83e4 (patch)
tree8208bcdb6f203519cb089de9905c9e9879eda3a1 /sbin
parentcf58ca408fd35b53f3d07d4876d87632cbb0d914 (diff)
downloadFreeBSD-src-bd3443f5fe8612acf4d4765665cf0eec5ead83e4.zip
FreeBSD-src-bd3443f5fe8612acf4d4765665cf0eec5ead83e4.tar.gz
Close the control socket before exiting, so it will be unlinked.
MFC after: 1 week
Diffstat (limited to 'sbin')
-rw-r--r--sbin/hastd/hastd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sbin/hastd/hastd.c b/sbin/hastd/hastd.c
index 37c2bf5..c2064e7 100644
--- a/sbin/hastd/hastd.c
+++ b/sbin/hastd/hastd.c
@@ -666,6 +666,7 @@ main_loop(void)
case SIGTERM:
sigexit_received = true;
terminate_workers();
+ proto_close(cfg->hc_controlconn);
exit(EX_OK);
break;
case SIGCHLD:
OpenPOWER on IntegriCloud