summaryrefslogtreecommitdiff
path: root/usr.sbin/vmd/vmd.h
diff options
context:
space:
mode:
authorAlexander Bluhm <bluhm@cvs.openbsd.org>2024-11-06 23:04:46 +0000
committerAlexander Bluhm <bluhm@cvs.openbsd.org>2024-11-06 23:04:46 +0000
commit011f88d681392c6029ab2525a8d00f8ae7fc8fbd (patch)
tree628d1aa55f7187b7823dddb51147db27855d819c /usr.sbin/vmd/vmd.h
parentef15bf9fd8e2d8a6fb1fb39451923c217426b923 (diff)
Fix vmd(8) logging to syslog(3) from child process.
Log messages from vmd(8) child processes went to /dev/null. Re-exec set the -n option, which in turn sets vmd_noaction and vmd_debug. Debugging means no more syslog(3), but stderr, which is /dev/null for a daemon. Remove -n from child re-exec, it does not have any effect except looging. Pass on the -d flag when debugging. The VMD_VERBOSE defines are more confusing than useful, just write -v like all the other options. Rework creation of execvp arguments. Do not use tab in syslog messages, space is sufficient. OK mlarkin@ hshoexer@ dv@
Diffstat (limited to 'usr.sbin/vmd/vmd.h')
-rw-r--r--usr.sbin/vmd/vmd.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/usr.sbin/vmd/vmd.h b/usr.sbin/vmd/vmd.h
index 613d846edf0..b84656fc20c 100644
--- a/usr.sbin/vmd/vmd.h
+++ b/usr.sbin/vmd/vmd.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: vmd.h,v 1.130 2024/11/06 22:06:16 bluhm Exp $ */
+/* $OpenBSD: vmd.h,v 1.131 2024/11/06 23:04:45 bluhm Exp $ */
/*
* Copyright (c) 2015 Mike Larkin <mlarkin@openbsd.org>
@@ -104,10 +104,6 @@
/* Unique local address for IPv6 */
#define VMD_ULA_PREFIX "fd00::/8"
-/* Verbosity arguments for use when caling execvp(2). */
-#define VMD_VERBOSE_1 "-v";
-#define VMD_VERBOSE_2 "-vv";
-
enum imsg_type {
IMSG_VMDOP_START_VM_REQUEST = IMSG_PROC_MAX,
IMSG_VMDOP_START_VM_CDROM,