[lxc-devel] [PATCH] lxc-ps: display process when container is frozen

2013-06-06 Thread Weng Meiling
From: Weng Meiling When we use lxc-ps to show the process, it's more appropriate to show process when container is frozen. Signed-off-by: Weng Meiling --- src/lxc/lxc-ps.in |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/lxc/lxc-ps.in b/src/lxc/lxc-ps.in

[lxc-devel] [PATCH] lxc-create: fix the wrong help info of lxc-create

2013-06-06 Thread Weng Meiling
From: Weng Meiling Signed-off-by: Weng Meiling --- src/lxc/lxc_create.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/lxc/lxc_create.c b/src/lxc/lxc_create.c index c9231ef..41efeaf 100644 --- a/src/lxc/lxc_create.c +++ b/src/lxc/lxc_create.c @@ -115,7 +115,8

Re: [lxc-devel] [PATCH] lxc-ps: fix the display problem with arg --lxc

2013-06-04 Thread Weng Meiling
On 2013/6/5 1:32, Serge Hallyn wrote: > Quoting Weng Meiling (wengmeiling.w...@huawei.com): >> When we use arg --lxc to show processes in all containers, no >> process displays, so fix it. >> >> Signed-off-by: Weng Meiling >> --- >> src/lxc/lxc-ps.in |

[lxc-devel] [PATCH] lxc-ps: fix the display problem with arg --lxc

2013-06-04 Thread Weng Meiling
When we use arg --lxc to show processes in all containers, no process displays, so fix it. Signed-off-by: Weng Meiling --- src/lxc/lxc-ps.in | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/lxc/lxc-ps.in b/src/lxc/lxc-ps.in index 29e8097..7e08a71 100644

[lxc-devel] [PATCH 1/2] add free conf->rcfile in lxc_conf_free

2013-05-02 Thread Weng Meiling
when releasing the conf, add free conf->rcfile which is from malloc Signed-off-by: Weng Meiling --- src/lxc/conf.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/src/lxc/conf.c b/src/lxc/conf.c index 6b3f318..01b70f4 100644 --- a/src/lxc/conf.c +++ b/src/lxc/con

[lxc-devel] [PATCH 2/2] lxc_start: free the conf if starting the container fails

2013-05-02 Thread Weng Meiling
When running lxc-start command with valgrind, it reports a memory leak error. When lxc-start command fails, the conf which is from malloc has not been released. This patch fix the problem. Signed-off-by: Weng Meiling --- src/lxc/lxc_start.c | 21 +++-- 1 files changed, 11