diff options
author | pjd <pjd@FreeBSD.org> | 2011-01-27 19:31:35 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2011-01-27 19:31:35 +0000 |
commit | bd3443f5fe8612acf4d4765665cf0eec5ead83e4 (patch) | |
tree | 8208bcdb6f203519cb089de9905c9e9879eda3a1 | |
parent | cf58ca408fd35b53f3d07d4876d87632cbb0d914 (diff) | |
download | FreeBSD-src-bd3443f5fe8612acf4d4765665cf0eec5ead83e4.zip FreeBSD-src-bd3443f5fe8612acf4d4765665cf0eec5ead83e4.tar.gz |
Close the control socket before exiting, so it will be unlinked.
MFC after: 1 week
-rw-r--r-- | sbin/hastd/hastd.c | 1 |
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: |