aboutsummaryrefslogtreecommitdiff
path: root/sbin/hastd
diff options
context:
space:
mode:
authorPawel Jakub Dawidek <pjd@FreeBSD.org>2011-01-27 19:31:35 +0000
committerPawel Jakub Dawidek <pjd@FreeBSD.org>2011-01-27 19:31:35 +0000
commitc0dbce0016df534517a059c590c10c45dc3af017 (patch)
tree8208bcdb6f203519cb089de9905c9e9879eda3a1 /sbin/hastd
parent94bf851dc164d696adbf1db5838945f6164ff90c (diff)
downloadsrc-c0dbce0016df534517a059c590c10c45dc3af017.tar.gz
src-c0dbce0016df534517a059c590c10c45dc3af017.zip
Close the control socket before exiting, so it will be unlinked.
MFC after: 1 week
Notes
Notes: svn path=/head/; revision=217967
Diffstat (limited to 'sbin/hastd')
-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 37c2bf5cc931..c2064e75e832 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: