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(-)


------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Lxc-devel mailing list
Lxc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-devel

Reply via email to