summaryrefslogtreecommitdiff
path: root/usr.sbin/hoststated/relay.c
diff options
context:
space:
mode:
authorPierre-Yves Ritschard <pyr@cvs.openbsd.org>2007-05-28 22:11:34 +0000
committerPierre-Yves Ritschard <pyr@cvs.openbsd.org>2007-05-28 22:11:34 +0000
commit0739723c2dfaeb4f7a762ed391916c2fcc4e5646 (patch)
tree49d4f8cc530020f0bf75d42e6a0d29fd0faf00e8 /usr.sbin/hoststated/relay.c
parentc0bf390feb298ca9f277d8516d35cd450ca36970 (diff)
another small step towards hoststated reloading.
allow purging of parts of the hoststated environment structure. start using this function now to only keep vital information in hoststated children processes. ok reyk@
Diffstat (limited to 'usr.sbin/hoststated/relay.c')
-rw-r--r--usr.sbin/hoststated/relay.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/hoststated/relay.c b/usr.sbin/hoststated/relay.c
index 8b5fa3b1906..5d05950523e 100644
--- a/usr.sbin/hoststated/relay.c
+++ b/usr.sbin/hoststated/relay.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: relay.c,v 1.29 2007/05/27 20:53:10 pyr Exp $ */
+/* $OpenBSD: relay.c,v 1.30 2007/05/28 22:11:33 pyr Exp $ */
/*
* Copyright (c) 2006, 2007 Reyk Floeter <reyk@openbsd.org>
@@ -159,6 +159,7 @@ relay(struct hoststated *x_env, int pipe_parent2pfe[2], int pipe_parent2hce[2],
}
env = x_env;
+ purge_config(env, PURGE_SERVICES);
/* Need root privileges for relay initialization */
relay_privinit();