]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
confile: config_rebootsignal()
authorChristian Brauner <christian.brauner@ubuntu.com>
Tue, 30 May 2017 02:49:29 +0000 (04:49 +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 e52d5e23cf14b49289f8eb0ac5a3e2ed7ebccd6c..c83ce30b9189eb2725c2097aa9b791624e608011 100644 (file)
@@ -1601,9 +1601,13 @@ static int config_rebootsignal(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->rebootsignal = 0;
                return 0;
+       }
 
+       /* Parse new config value. */
        sig_n = sig_parse(value);
        if (sig_n < 0)
                return -1;