bhyve: set title before entering capability mode

PR:		230082
Submitted by:	Yuichiro NAITO <naito.yuichiro@gmail.com>
This commit is contained in:
oshogbo 2018-08-02 21:54:34 +00:00
parent 76d6892f91
commit f7cb6cf00e

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