]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
Add SIGPWR support to lxc_init
authorNikolay Martynov <mar.kolya@gmail.com>
Sun, 20 Jul 2014 19:35:04 +0000 (15:35 -0400)
committerStéphane Graber <stgraber@ubuntu.com>
Mon, 21 Jul 2014 09:45:32 +0000 (11:45 +0200)
This patch adds SIGPWR support to lxc_init.
This helps to properly shutdown lxc_init based containers.

Signed-off-by: Nikolay Martynov <mar.kolya@gmail.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
src/lxc/lxc_init.c

index 5578736afc72f0c38079c7fedbcf83f9f658a9b0..0778bfe5d211413b349f9cdb8597b9ea0d45ef80 100644 (file)
@@ -209,6 +209,7 @@ int main(int argc, char *argv[])
                case 0:
                        break;
 
+               case SIGPWR:
                case SIGTERM:
                        if (!shutdown) {
                                shutdown = 1;