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.1.0.alpha2~127 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5c7f03ae85668fb9c8e81504624b33347465256c;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;