Re: [lxc-users] library start() API from process name having spaces

2018-07-13 Thread Chaetoo3
> Can you file an issue on Github with the details and your suggestions to > > track this, please? Yes, I will try. ___ lxc-users mailing list lxc-users@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-users

Re: [lxc-users] library start() API from process name having spaces

2018-07-12 Thread Christian Brauner
On Thu, Jul 05, 2018 at 01:06:29PM -0400, Chaetoo3 wrote: > > You mean it wouldn't change from "my binary --with --args" to "[lxc > > monitor]? > > Yes, exactly like that. > > It seems to me that proc stat file is for machine parsing, but is not > so convenient for machine parsing. I do not kno

Re: [lxc-users] library start() API from process name having spaces

2018-07-05 Thread Chaetoo3
> You mean it wouldn't change from "my binary --with --args" to "[lxc monitor]? Yes, exactly like that. It seems to me that proc stat file is for machine parsing, but is not so convenient for machine parsing. I do not know if there is an official technique. There are some ways, but they all se

Re: [lxc-users] library start() API from process name having spaces

2018-07-05 Thread Tycho Andersen
On Thu, Jul 05, 2018 at 03:42:55PM +0200, Christian Brauner wrote: > On Wed, Jul 04, 2018 at 03:23:19PM -0400, Chaetoo3 wrote: > > Hi! > > > > I try to use the liblxc start() API from my process and it worked, but > > I notice it would not set the process name for the container process > > as it w

Re: [lxc-users] library start() API from process name having spaces

2018-07-05 Thread Christian Brauner
On Wed, Jul 04, 2018 at 03:23:19PM -0400, Chaetoo3 wrote: > Hi! > > I try to use the liblxc start() API from my process and it worked, but > I notice it would not set the process name for the container process > as it would do from the lxc-start command line. Instead the container > process staye

[lxc-users] library start() API from process name having spaces

2018-07-04 Thread Chaetoo3
Hi! I try to use the liblxc start() API from my process and it worked, but I notice it would not set the process name for the container process as it would do from the lxc-start command line. Instead the container process stayed with the name of my caller. I sniff around and make a local fix.