Unverified Commit 76b83cb1 by Christian Brauner Committed by Stéphane Graber

confile: config_stopsignal()

parent 8b4282e4
...@@ -1296,8 +1296,12 @@ static int config_haltsignal(const char *key, const char *value, ...@@ -1296,8 +1296,12 @@ static int config_haltsignal(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