bhyve: set title before entering capability mode

PR:		230082
Submitted by:	Yuichiro NAITO <naito.yuichiro@gmail.com>
This commit is contained in:
Mariusz Zaborski 2018-08-02 21:54:34 +00:00
parent a6589ab760
commit dcbebe85de
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=337189

View File

@ -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
*/