--- bhyverun.c.orig 2018-07-12 23:19:06.695293000 +0900 +++ bhyverun.c 2018-08-01 23:43:50.024694000 +0900 @@ -1027,6 +1027,11 @@ usage(1); vmname = argv[0]; + /* + * Change the proc title to include the VM name. + */ + setproctitle("%s", vmname); + ctx = do_open(vmname); max_vcpus = num_vcpus_allowed(ctx); @@ -1122,11 +1127,6 @@ errx(EX_OSERR, "cap_enter() failed"); #endif - /* - * Change the proc title to include the VM name. - */ - setproctitle("%s", vmname); - /* * Add CPU 0 */