diff options
author | Pierre-Yves Ritschard <pyr@cvs.openbsd.org> | 2007-10-20 13:26:51 +0000 |
---|---|---|
committer | Pierre-Yves Ritschard <pyr@cvs.openbsd.org> | 2007-10-20 13:26:51 +0000 |
commit | 59343009af568a43bdd36606a866dfca734e0a56 (patch) | |
tree | 9dfc0c6a491553ef1d4ba9375ad24acffc1dd482 /usr.sbin/dvmrpd/dvmrpd.c | |
parent | f3c3058e17d6e7c0f6d0af5829d7f013c60dcd66 (diff) |
Sync parse.y with recent enhancements in hoststated.
Fix behavior when running -n.
henning@
Diffstat (limited to 'usr.sbin/dvmrpd/dvmrpd.c')
-rw-r--r-- | usr.sbin/dvmrpd/dvmrpd.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.sbin/dvmrpd/dvmrpd.c b/usr.sbin/dvmrpd/dvmrpd.c index cf8cb6f7819..ec8ae5ad63a 100644 --- a/usr.sbin/dvmrpd/dvmrpd.c +++ b/usr.sbin/dvmrpd/dvmrpd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dvmrpd.c,v 1.4 2007/10/13 16:35:20 deraadt Exp $ */ +/* $OpenBSD: dvmrpd.c,v 1.5 2007/10/20 13:26:50 pyr Exp $ */ /* * Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org> @@ -128,8 +128,7 @@ main(int argc, char *argv[]) conffile = CONF_FILE; dvmrpd_process = PROC_MAIN; - /* start logging */ - log_init(1); + log_init(1); /* log to stderr until daemonized */ while ((ch = getopt(argc, argv, "df:nv")) != -1) { switch (ch) { @@ -192,6 +191,9 @@ main(int argc, char *argv[]) endpwent(); + /* start logging */ + log_init(1); + if (!debug) daemon(1, 0); |