[lxc-devel] [PATCH v2] port lxc-top from lua to C for wider availability

Serge Hallyn serge.hallyn at ubuntu.com
Tue Sep 23 18:48:33 UTC 2014


Quoting Dwight Engen (dwight.engen at oracle.com):
> On Mon, 22 Sep 2014 23:52:18 +0000
> Serge Hallyn <serge.hallyn at ubuntu.com> wrote:
> 
> > Quoting Dwight Engen (dwight.engen at oracle.com):
> > > - keep but rename the lua version as an example of how to use the
> > > lua API
> > > 
> > > - got rid of the fairly useless --max argument
> > > 
> > > Signed-off-by: Dwight Engen <dwight.engen at oracle.com>
> > 
> > Sorry, a few more comments below.  Also, I noticed that when I run
> > this as root then I can control it, i.e. 'q' to quit;  but when i run
> > it as non-root i cannot.  Do you know offhand why that would be?
> 
> No problem, I'll fix those up in a v3. As far as using 'q', I'm not
> sure why that wouldn't be working, it does here for non-root. Maybe
> your terminal isn't getting into non-cannonical mode? You could try the
> following patch for debugging and also try hitting 'q' followed by
> 'enter'.

Hm, yeah, the stdin_handler only gets called when i hit enter.

-serge


More information about the lxc-devel mailing list