[Bug 230082] bhyve doesn't set process title
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Fri Jul 27 09:30:55 UTC 2018
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=230082
Bug ID: 230082
Summary: bhyve doesn't set process title
Product: Base System
Version: CURRENT
Hardware: Any
OS: Any
Status: New
Severity: Affects Some People
Priority: ---
Component: kern
Assignee: bugs at FreeBSD.org
Reporter: naito.yuichiro at gmail.com
On my FreeBSD head r336754,
bhyve process title never be set.
Bhyve calls setproctile(3) in usr.sbin/bhyve/bhyverun.c as follows.
```
/*
* Change the proc title to include the VM name.
*/
setproctitle("%s", vmname);
```
So, I expect ps shows "bhyve: test".
But my ps shows as follows.
```
1770 1 SC 0:13.02 /usr/sbin/bhyve -c 2 -A -H -P -m 2G -s 0,hostbridge -s
1,lpc -s 2,ahci-hd,/dev/zvol/zpool/iohyve/test/disk0
``
I can see other processes set process title correctly.
For example:
```
571 - Is 0:00.00 dhclient: em0 [priv] (dhclient)
1001 - Is 0:00.00 nginx: master process /usr/local/sbin/nginx
1324 - Ss 0:00.01 sendmail: accepting connections (sendmail)
```
It seems only bhyve problem.
My virtual machine on the bhyve works fine.
No problem for the execution.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list