[lxc-devel] [PATCH] remove redundent LXC_TTY_HANDLER

2012-01-24 Thread jian
From: Jian Xiao All the signals (except fatal ones) are redirected to signalfd at lxc_init, so the LXC_TTY_HANDLERs are redundant. This patch removes them. Signed-off-by: Jian Xiao --- src/lxc/start.c |9 - src/lxc/utils.h | 29 ++--- 2 files changed, 2

[lxc-devel] [PATCH] correctly install signal handler for lxc-init

2012-01-24 Thread jian
From: Jian Xiao This patch is to correct the manipulation of signal masks when installing signal handlers for lxc-init. Signed-off-by: Jian Xiao Signed-off-by: Greg Kurz --- src/lxc/lxc_init.c | 22 +++--- 1 files changed, 19 insertions(+), 3 deletions(-) diff --git a/src

[lxc-devel] [PATCH 0/1] support shmmax/shmall KEY for lxc-execute

2012-07-06 Thread jian
From: Jian Xiao Often system admin needs to change /proc/sys/kernel/shmmax and shmall values to run a job. These values are not inherited by container and needs to be passed to container when starting the job. This patch adds "lxc.shmmax" and "lxc.shmall" configuration vari

[lxc-devel] [PATCH 1/1] support shmmax/shmall KEY for lxc-execute

2012-07-06 Thread jian
From: Jian Xiao Signed-off-by: Jian Xiao --- src/lxc/conf.c| 123 + src/lxc/conf.h|2 + src/lxc/confile.c | 32 ++ 3 files changed, 157 insertions(+), 0 deletions(-) diff --git a/src/lxc/conf.c b/src/lxc/conf.c

[lxc-devel] [PATCH v2 1/1] support shmmax/shmall KEY for lxc-execute

2012-07-07 Thread jian
From: Jian Xiao Signed-off-by: Jian Xiao --- src/lxc/conf.c| 77 + src/lxc/conf.h|2 + src/lxc/confile.c | 32 ++ 3 files changed, 111 insertions(+), 0 deletions(-) diff --git a/src/lxc/conf.c b/src/lxc

[lxc-devel] [PATCH v2 0/1] support shmmax/shmall KEY for lxc-execute

2012-07-07 Thread jian
From: Jian Xiao Thanks Serge for the comments. Here is version 2. Often system admin needs to change /proc/sys/kernel/shmmax and shmall values to run a job. These values are not inherited by container and needs to be passed to container when starting the job. This patch adds "lxc.shmmax