Unverified Commit c98dd7bc by Christian Brauner Committed by Stéphane Graber

confile: config_stopsignal()

parent c7c1145d
...@@ -1472,10 +1472,14 @@ static int config_rebootsignal(const char *key, const char *value, ...@@ -1472,10 +1472,14 @@ static int config_rebootsignal(const char *key, const char *value,
} }
static int config_stopsignal(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) if (sig_n < 0)
return -1; return -1;
lxc_conf->stopsignal = sig_n; lxc_conf->stopsignal = sig_n;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment