summaryrefslogtreecommitdiff
path: root/usr.sbin/relayd/relay.c
diff options
context:
space:
mode:
authorPierre-Yves Ritschard <pyr@cvs.openbsd.org>2007-06-07 07:19:51 +0000
committerPierre-Yves Ritschard <pyr@cvs.openbsd.org>2007-06-07 07:19:51 +0000
commit0a9bb0d1fab75b6428acbeeb5a42e6ce76467cf6 (patch)
treea4c324da285797a88895b7543de54beddf214f19 /usr.sbin/relayd/relay.c
parente0d66f1005b177e1fbe63f0b4833c5557e3fb6ea (diff)
(finally) Enable reload support for layer 3 configurations.
Hoststated can be reloaded either by sending SIGHUP to the parent process or by using ``hoststatectl reload'' discussed and ok reyk@
Diffstat (limited to 'usr.sbin/relayd/relay.c')
-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 47f44a8c9aa..cfdd3a8dbc9 100644
--- a/usr.sbin/relayd/relay.c
+++ b/usr.sbin/relayd/relay.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: relay.c,v 1.32 2007/05/29 00:48:04 pyr Exp $ */
+/* $OpenBSD: relay.c,v 1.33 2007/06/07 07:19:50 pyr Exp $ */
/*
* Copyright (c) 2006, 2007 Reyk Floeter <reyk@openbsd.org>
@@ -172,6 +172,9 @@ relay(struct hoststated *x_env, int pipe_parent2pfe[2], int pipe_parent2hce[2],
fatal("relay: chroot");
if (chdir("/") == -1)
fatal("relay: chdir(\"/\")");
+
+#else
+#warning disabling privilege revocation and chroot in DEBUG mode
#endif
setproctitle("socket relay engine");