Author: oshogbo
Date: Thu Aug  2 21:54:34 2018
New Revision: 337189
URL: https://svnweb.freebsd.org/changeset/base/337189

Log:
  bhyve: set title before entering capability mode
  
  PR:           230082
  Submitted by: Yuichiro NAITO <[email protected]>

Modified:
  head/usr.sbin/bhyve/bhyverun.c

Modified: head/usr.sbin/bhyve/bhyverun.c
==============================================================================
--- head/usr.sbin/bhyve/bhyverun.c      Thu Aug  2 21:53:47 2018        
(r337188)
+++ head/usr.sbin/bhyve/bhyverun.c      Thu Aug  2 21:54:34 2018        
(r337189)
@@ -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
         */
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to