diff options
author | Reyk Floeter <reyk@cvs.openbsd.org> | 2016-09-02 13:09:22 +0000 |
---|---|---|
committer | Reyk Floeter <reyk@cvs.openbsd.org> | 2016-09-02 13:09:22 +0000 |
commit | 40a393ec0b234b548849b23682b17d1faaf60ca4 (patch) | |
tree | ed98ac3a1c0f07d8f2db417450393c924df46551 /usr.sbin | |
parent | 94cdb9e2c682e368f6af6f5a91007764422f011a (diff) |
As done in httpd, (re-)initialize ps_what in all processes. This is
no functional change at this point.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/relayd/config.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/usr.sbin/relayd/config.c b/usr.sbin/relayd/config.c index a72e32f983a..db6ac05ea4c 100644 --- a/usr.sbin/relayd/config.c +++ b/usr.sbin/relayd/config.c @@ -1,4 +1,4 @@ -/* $OpenBSD: config.c,v 1.28 2016/09/01 10:49:48 claudio Exp $ */ +/* $OpenBSD: config.c,v 1.29 2016/09/02 13:09:21 reyk Exp $ */ /* * Copyright (c) 2011 - 2014 Reyk Floeter <reyk@openbsd.org> @@ -44,15 +44,15 @@ config_init(struct relayd *env) env->sc_interval.tv_usec = 0; env->sc_prefork_relay = RELAY_NUMPROC; env->sc_statinterval.tv_sec = RELAY_STATINTERVAL; - - ps->ps_what[PROC_PARENT] = CONFIG_ALL; - ps->ps_what[PROC_PFE] = CONFIG_ALL & ~CONFIG_PROTOS; - ps->ps_what[PROC_HCE] = CONFIG_TABLES; - ps->ps_what[PROC_CA] = CONFIG_RELAYS; - ps->ps_what[PROC_RELAY] = CONFIG_RELAYS| - CONFIG_TABLES|CONFIG_PROTOS|CONFIG_CA_ENGINE; } + ps->ps_what[PROC_PARENT] = CONFIG_ALL; + ps->ps_what[PROC_PFE] = CONFIG_ALL & ~CONFIG_PROTOS; + ps->ps_what[PROC_HCE] = CONFIG_TABLES; + ps->ps_what[PROC_CA] = CONFIG_RELAYS; + ps->ps_what[PROC_RELAY] = CONFIG_RELAYS| + CONFIG_TABLES|CONFIG_PROTOS|CONFIG_CA_ENGINE; + /* Other configuration */ what = ps->ps_what[privsep_process]; if (what & CONFIG_TABLES) { |