summaryrefslogtreecommitdiffstats
path: root/sbin/hastd/control.h
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2010-09-22 18:57:06 +0000
committerpjd <pjd@FreeBSD.org>2010-09-22 18:57:06 +0000
commit3657e3ff87f4a157905be2ffb58ae05887892b2c (patch)
tree43ea2b318d2781bffd40b06b0db52245e5eda1cd /sbin/hastd/control.h
parent6738880ac2bdfaeef78a9e585dcecc0196ae13b5 (diff)
downloadFreeBSD-src-3657e3ff87f4a157905be2ffb58ae05887892b2c.zip
FreeBSD-src-3657e3ff87f4a157905be2ffb58ae05887892b2c.tar.gz
Fix descriptor leaks: when child exits, we have to close control and event
socket pairs. We did that only in one case out of three. MFC after: 3 days
Diffstat (limited to 'sbin/hastd/control.h')
-rw-r--r--sbin/hastd/control.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sbin/hastd/control.h b/sbin/hastd/control.h
index bde790a..582617d 100644
--- a/sbin/hastd/control.h
+++ b/sbin/hastd/control.h
@@ -38,6 +38,8 @@
struct hastd_config;
struct hast_resource;
+void child_cleanup(struct hast_resource *res);
+
void control_set_role(struct hast_resource *res, uint8_t role);
void control_handle(struct hastd_config *cfg);
OpenPOWER on IntegriCloud