]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
confile: config_stopsignal()
authorChristian Brauner <christian.brauner@ubuntu.com>
Tue, 30 May 2017 02:50:09 +0000 (04:50 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Tue, 30 May 2017 16:43:06 +0000 (18:43 +0200)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/confile.c

index c83ce30b9189eb2725c2097aa9b791624e608011..87d0e6eaf0333586299d4c2dcd3541ac9ec3e904 100644 (file)
@@ -1621,9 +1621,13 @@ static int config_stopsignal(const char *key, const char *value,
 {
        int sig_n;
 
-       if (config_value_empty(value))
+       /* Set config value to default. */
+       if (config_value_empty(value)) {
+               lxc_conf->stopsignal = 0;
                return 0;
+       }
 
+       /* Parse new config value. */
        sig_n = sig_parse(value);
        if (sig_n < 0)
                return -1;