From: Nikolay Martynov Date: Sun, 20 Jul 2014 19:35:04 +0000 (-0400) Subject: Add SIGPWR support to lxc_init X-Git-Tag: lxc-1.0.6~75 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3ca2ba5225f9de6e4670558a73ba301785e7b805;p=thirdparty%2Flxc.git Add SIGPWR support to lxc_init This patch adds SIGPWR support to lxc_init. This helps to properly shutdown lxc_init based containers. Signed-off-by: Nikolay Martynov Acked-by: Stéphane Graber --- diff --git a/src/lxc/lxc_init.c b/src/lxc/lxc_init.c index 5578736af..0778bfe5d 100644 --- a/src/lxc/lxc_init.c +++ b/src/lxc/lxc_init.c @@ -209,6 +209,7 @@ int main(int argc, char *argv[]) case 0: break; + case SIGPWR: case SIGTERM: if (!shutdown) { shutdown = 1;