From 5c7f03ae85668fb9c8e81504624b33347465256c Mon Sep 17 00:00:00 2001 From: Nikolay Martynov Date: Sun, 20 Jul 2014 15:35:04 -0400 Subject: [PATCH] Add SIGPWR support to lxc_init MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- src/lxc/lxc_init.c | 1 + 1 file changed, 1 insertion(+) 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; -- 2.47.2