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

confile: config_rebootsignal()

parent 4342b36b
...@@ -1456,10 +1456,14 @@ static int config_haltsignal(const char *key, const char *value, ...@@ -1456,10 +1456,14 @@ static int config_haltsignal(const char *key, const char *value,
} }
static int config_rebootsignal(const char *key, const char *value, static int config_rebootsignal(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->rebootsignal = sig_n; lxc_conf->rebootsignal = 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