[lxc-devel] [PATCH 0/7] Last minute signal stuff

2010-06-06 Thread Ferenc Wagner
Hi, The first part is some tinkering to make lxc compile under Debian Lenny. The "dangerous" part is the signal forwarding and the process group business I was playing with recently. It contains Greg's idea about setting the foreground process group and also inverts the signal selection logic.

[lxc-devel] [PATCH 0/7] Last minute signal stuff (now in separate mails)

2010-06-06 Thread Ferenc Wagner
Hi, The first part is some tinkering to make lxc compile under Debian Lenny. The "dangerous" part is the signal forwarding and the process group business I was playing with recently. It contains Greg's idea about setting the foreground process group and also inverts the signal selection logic.

[lxc-devel] [PATCH 4/7] start child in its own process group, and put it into the foreground

2010-06-06 Thread Ferenc Wagner
Signed-off-by: Ferenc Wagner --- src/lxc/start.c | 17 + 1 files changed, 17 insertions(+), 0 deletions(-) diff --git a/src/lxc/start.c b/src/lxc/start.c index b69ac88..851d383 100644 --- a/src/lxc/start.c +++ b/src/lxc/start.c @@ -463,6 +463,7 @@ int lxc_spawn(struct lxc_hand

[lxc-devel] [PATCH 2/7] uint32_t is defined in stdint.h

2010-06-06 Thread Ferenc Wagner
Signed-off-by: Ferenc Wagner --- src/lxc/start.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/src/lxc/start.c b/src/lxc/start.c index 2d45396..b69ac88 100644 --- a/src/lxc/start.c +++ b/src/lxc/start.c @@ -49,6 +49,7 @@ # include #else /* assume kernel headers ar

[lxc-devel] [PATCH 3/7] .gitignore new components

2010-06-06 Thread Ferenc Wagner
Signed-off-by: Ferenc Wagner --- .gitignore |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/.gitignore b/.gitignore index 83979f9..ce56094 100644 --- a/.gitignore +++ b/.gitignore @@ -25,10 +25,12 @@ lxc.spec lxc.pc scripts/lxc-debian +scripts/lxc-ubuntu scripts/l

[lxc-devel] [PATCH 1/7] conditional use of new capabilities

2010-06-06 Thread Ferenc Wagner
Signed-off-by: Ferenc Wagner --- src/lxc/conf.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/src/lxc/conf.c b/src/lxc/conf.c index 3d550a7..9565d91 100644 --- a/src/lxc/conf.c +++ b/src/lxc/conf.c @@ -170,8 +170,12 @@ static struct caps_opt caps_opt[] = { {

[lxc-devel] [PATCH 7/7] generalize the name of the signal handler

2010-06-06 Thread Ferenc Wagner
Signed-off-by: Ferenc Wagner --- src/lxc/start.c | 10 +- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/lxc/start.c b/src/lxc/start.c index b8ccd31..23f148e 100644 --- a/src/lxc/start.c +++ b/src/lxc/start.c @@ -187,7 +187,7 @@ int lxc_check_inherited(int fd_to_ign

[lxc-devel] [PATCH 6/7] forward signals to the container init

2010-06-06 Thread Ferenc Wagner
Signed-off-by: Ferenc Wagner --- src/lxc/start.c | 22 ++ 1 files changed, 14 insertions(+), 8 deletions(-) diff --git a/src/lxc/start.c b/src/lxc/start.c index ee79892..b8ccd31 100644 --- a/src/lxc/start.c +++ b/src/lxc/start.c @@ -192,13 +192,13 @@ static int setup_sigch

[lxc-devel] [PATCH 5/7] lxc-start isn't in the foreground anymore, so TTY signals don't reach it

2010-06-06 Thread Ferenc Wagner
Signed-off-by: Ferenc Wagner --- src/lxc/start.c |9 - src/lxc/utils.h | 27 --- 2 files changed, 0 insertions(+), 36 deletions(-) diff --git a/src/lxc/start.c b/src/lxc/start.c index 851d383..ee79892 100644 --- a/src/lxc/start.c +++ b/src/lxc/start.c @@ -1