[lxc-devel] [PATCH 0/5] Signal stuff v2 and some documentation

Ferenc Wagner wferi at niif.hu
Wed Jun 9 17:56:02 UTC 2010


Hi,

here are basically the same patches, with some obvious errors corrected
and some unrelated documentation added.  It actually survived some
targeted testing in the past days and seems to behave as expected, ie.

# lxc-start -n s -- sh -c "trap 'echo TERM' TERM; sleep 10"

can be interrupted by Ctrl-C from the terminal (the sleep process does
not ignore the SIGINT sent to the foreground process group by the OS),
while a

# pkill lxc-start

does not terminate the sleep as the SIGTERM gets forwarded to the shell
only, which reports it after the sleep expires.  This forwarding
mechanism makes it possible to plug lxc into our batch queueing system.

Thanks,
Feri.


Ferenc Wagner (5):
  start child in its own process group, and put it into the foreground
  lxc-start isn't in the foreground anymore, so TTY signals don't reach it
  forward signals to the container init
  generalize the name of the signal handler
  document rootfs options

 doc/lxc.conf.sgml.in |   39 ++++++++++++++++++++++++++++++---
 src/lxc/start.c      |   58 +++++++++++++++++++++++++++++++-------------------
 src/lxc/utils.h      |   29 +-----------------------
 3 files changed, 73 insertions(+), 53 deletions(-)





More information about the lxc-devel mailing list