Unverified Commit 8b4282e4 by Christian Brauner Committed by Stéphane Graber

confile: config_haltsignal()

parent d86a9570
...@@ -1279,11 +1279,13 @@ static int sig_parse(const char *signame) { ...@@ -1279,11 +1279,13 @@ static int sig_parse(const char *signame) {
static int config_haltsignal(const char *key, const char *value, static int config_haltsignal(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)) if (config_value_empty(value))
return 0; return 0;
sig_n = sig_parse(value);
if (sig_n < 0) if (sig_n < 0)
return -1; return -1;
lxc_conf->haltsignal = sig_n; lxc_conf->haltsignal = 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