summaryrefslogtreecommitdiffstats
path: root/usr.sbin/vmd
diff options
context:
space:
mode:
authormlarkin <mlarkin@openbsd.org>2018-04-25 15:49:48 +0000
committermlarkin <mlarkin@openbsd.org>2018-04-25 15:49:48 +0000
commita354b791415658526784b7fc18ddb2e422b3cd3f (patch)
tree66a36eef414bf44d3d7040e7c645e86574c1b6a7 /usr.sbin/vmd
parentIn asn1.h rev. 1.46 2018/04/25 11:48:21, tb@ added const qualifiers (diff)
downloadwireguard-openbsd-a354b791415658526784b7fc18ddb2e422b3cd3f.tar.xz
wireguard-openbsd-a354b791415658526784b7fc18ddb2e422b3cd3f.zip
vmd(8)'s early error messages weren't visible when started via /etc/rc
(such as errors relating to not having VMX/etc). Change the log_init to log to syslog so at least we have some chance of seeing these errors. requested and ok beck@
Diffstat (limited to 'usr.sbin/vmd')
-rw-r--r--usr.sbin/vmd/vmd.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.sbin/vmd/vmd.c b/usr.sbin/vmd/vmd.c
index 0252fc36471..0eea5d8e4d5 100644
--- a/usr.sbin/vmd/vmd.c
+++ b/usr.sbin/vmd/vmd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vmd.c,v 1.83 2018/04/21 07:03:06 mlarkin Exp $ */
+/* $OpenBSD: vmd.c,v 1.84 2018/04/25 15:49:48 mlarkin Exp $ */
/*
* Copyright (c) 2015 Reyk Floeter <reyk@openbsd.org>
@@ -662,8 +662,7 @@ main(int argc, char **argv)
const char *errp, *title = NULL;
int argc0 = argc;
- /* log to stderr until daemonized */
- log_init(1, LOG_DAEMON);
+ log_init(0, LOG_DAEMON);
if ((env = calloc(1, sizeof(*env))) == NULL)
fatal("calloc: env");