diff options
author | Pierre-Yves Ritschard <pyr@cvs.openbsd.org> | 2007-05-28 22:11:34 +0000 |
---|---|---|
committer | Pierre-Yves Ritschard <pyr@cvs.openbsd.org> | 2007-05-28 22:11:34 +0000 |
commit | 0739723c2dfaeb4f7a762ed391916c2fcc4e5646 (patch) | |
tree | 49d4f8cc530020f0bf75d42e6a0d29fd0faf00e8 /usr.sbin/relayd/hce.c | |
parent | c0bf390feb298ca9f277d8516d35cd450ca36970 (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/relayd/hce.c')
-rw-r--r-- | usr.sbin/relayd/hce.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/relayd/hce.c b/usr.sbin/relayd/hce.c index 8ae3c42110d..0110dfe7d22 100644 --- a/usr.sbin/relayd/hce.c +++ b/usr.sbin/relayd/hce.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hce.c,v 1.20 2007/05/27 20:53:10 pyr Exp $ */ +/* $OpenBSD: hce.c,v 1.21 2007/05/28 22:11:33 pyr Exp $ */ /* * Copyright (c) 2006 Pierre-Yves Ritschard <pyr@spootnik.org> @@ -85,6 +85,7 @@ hce(struct hoststated *x_env, int pipe_parent2pfe[2], int pipe_parent2hce[2], } env = x_env; + purge_config(env, PURGE_SERVICES|PURGE_RELAYS|PURGE_PROTOS); if ((pw = getpwnam(HOSTSTATED_USER)) == NULL) fatal("hce: getpwnam"); |