summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr.sbin/relayd/relay.c5
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;