]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
confile: config_stopsignal()
authorChristian Brauner <christian.brauner@ubuntu.com>
Mon, 29 May 2017 13:01:28 +0000 (15:01 +0200)
committerStéphane Graber <stgraber@ubuntu.com>
Tue, 15 Aug 2017 21:35:30 +0000 (17:35 -0400)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/confile.c

index 40c327f647f33683be1b7ef2eac4b10626bb4f79..01d38e05168261b61ebdafe4fa9700e7bf0ffa80 100644 (file)
@@ -1294,10 +1294,14 @@ static int config_haltsignal(const char *key, const char *value,
 }
 
 static int config_stopsignal(const char *key, const char *value,
-                         struct lxc_conf *lxc_conf)
+                            struct lxc_conf *lxc_conf)
 {
-       int sig_n = sig_parse(value);
+       int sig_n;
 
+       if (config_value_empty(value))
+               return 0;
+
+       sig_n = sig_parse(value);
        if (sig_n < 0)
                return -1;
        lxc_conf->stopsignal = sig_n;