From c0dbce0016df534517a059c590c10c45dc3af017 Mon Sep 17 00:00:00 2001 From: Pawel Jakub Dawidek Date: Thu, 27 Jan 2011 19:31:35 +0000 Subject: [PATCH] Close the control socket before exiting, so it will be unlinked. MFC after: 1 week --- sbin/hastd/hastd.c | 1 + 1 file changed, 1 insertion(+) 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: