summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--usr.sbin/rebound/rebound.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.sbin/rebound/rebound.c b/usr.sbin/rebound/rebound.c
index 269b98ef973..e59973da7e3 100644
--- a/usr.sbin/rebound/rebound.c
+++ b/usr.sbin/rebound/rebound.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rebound.c,v 1.51 2015/12/04 10:59:36 tedu Exp $ */
+/* $OpenBSD: rebound.c,v 1.52 2015/12/04 16:33:40 tedu Exp $ */
/*
* Copyright (c) 2015 Ted Unangst <tedu@openbsd.org>
*
@@ -667,9 +667,6 @@ main(int argc, char **argv)
tzset();
openlog("rebound", LOG_PID | LOG_NDELAY, LOG_DAEMON);
- if (!debug)
- daemon(0, 0);
-
RB_INIT(&reqtree);
TAILQ_INIT(&reqfifo);
TAILQ_INIT(&cachefifo);
@@ -701,6 +698,8 @@ main(int argc, char **argv)
return 1;
}
+ daemon(0, 0);
+
kq = kqueue();
EV_SET(&kev, SIGHUP, EVFILT_SIGNAL, EV_ADD, 0, 0, NULL);