summaryrefslogtreecommitdiffstats
path: root/sbin/hastd
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2010-04-16 06:47:29 +0000
committerpjd <pjd@FreeBSD.org>2010-04-16 06:47:29 +0000
commit9358f8fa2bf12f2573f2cecbd354d97233801d49 (patch)
treeae065db7882449af4bc80d22a059f73a660e8f87 /sbin/hastd
parentd54e6dc056e8f2073a317f588107be58d4248a65 (diff)
downloadFreeBSD-src-9358f8fa2bf12f2573f2cecbd354d97233801d49.zip
FreeBSD-src-9358f8fa2bf12f2573f2cecbd354d97233801d49.tar.gz
Fix control socket leak when worker process exits.
Submitted by: Mikolaj Golub <to.my.trociny@gmail.com> MFC after: 3 days
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 19f0893..957885d 100644
--- a/sbin/hastd/hastd.c
+++ b/sbin/hastd/hastd.c
@@ -137,6 +137,7 @@ child_exit(void)
pjdlog_error("Worker process failed (pid=%u, status=%d).",
(unsigned int)pid, WEXITSTATUS(status));
}
+ proto_close(res->hr_ctrl);
res->hr_workerpid = 0;
if (res->hr_role == HAST_ROLE_PRIMARY) {
sleep(1);
OpenPOWER on IntegriCloud