diff options
author | Sebastian Benoit <benno@cvs.openbsd.org> | 2012-09-17 19:27:39 +0000 |
---|---|---|
committer | Sebastian Benoit <benno@cvs.openbsd.org> | 2012-09-17 19:27:39 +0000 |
commit | 67aae5022f47ddfd5a5fcd6c9d001d3dfc52b80d (patch) | |
tree | 34eacffcb0d3c3dea8505950da689fa9b2f0ab8d /usr.sbin | |
parent | 5c2921e38e81f1f5da0d9dd4ea25b3c29d43d443 (diff) |
Fix relay statistics. Found and fix by Erik Lax (erik -at- halon -dot- se)
ok reyk
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/relayd/relay.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/relayd/relay.c b/usr.sbin/relayd/relay.c index afda73f4a8d..e4120b8430f 100644 --- a/usr.sbin/relayd/relay.c +++ b/usr.sbin/relayd/relay.c @@ -1,4 +1,4 @@ -/* $OpenBSD: relay.c,v 1.150 2012/07/13 07:54:14 benno Exp $ */ +/* $OpenBSD: relay.c,v 1.151 2012/09/17 19:27:38 benno Exp $ */ /* * Copyright (c) 2006, 2007, 2008 Reyk Floeter <reyk@openbsd.org> @@ -333,6 +333,9 @@ relay_init(struct privsep *ps, struct privsep_proc *p, void *arg) if (config_init(ps->ps_env) == -1) fatal("failed to initialize configuration"); + /* Set to current prefork id */ + proc_id = p->p_instance; + /* We use a custom shutdown callback */ p->p_shutdown = relay_shutdown; |