Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Jul 2018 09:30:53 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 230082] bhyve doesn't set process title
Message-ID:  <bug-230082-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help

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@FreeBSD.org
          Reporter: naito.yuichiro@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.


Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-230082-227>