From dcbebe85decbb56f91c5137a2c98e3dadfad6737 Mon Sep 17 00:00:00 2001 From: Mariusz Zaborski Date: Thu, 2 Aug 2018 21:54:34 +0000 Subject: [PATCH] bhyve: set title before entering capability mode PR: 230082 Submitted by: Yuichiro NAITO --- usr.sbin/bhyve/bhyverun.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/usr.sbin/bhyve/bhyverun.c b/usr.sbin/bhyve/bhyverun.c index f52f8b2b5819..23be74bf2bf8 100644 --- a/usr.sbin/bhyve/bhyverun.c +++ b/usr.sbin/bhyve/bhyverun.c @@ -1112,6 +1112,11 @@ main(int argc, char *argv[]) if (lpc_bootrom()) fwctl_init(); + /* + * Change the proc title to include the VM name. + */ + setproctitle("%s", vmname); + #ifndef WITHOUT_CAPSICUM caph_cache_catpages(); @@ -1122,11 +1127,6 @@ main(int argc, char *argv[]) errx(EX_OSERR, "cap_enter() failed"); #endif - /* - * Change the proc title to include the VM name. - */ - setproctitle("%s", vmname); - /* * Add CPU 0 */