confile: config_haltsignal()

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
Christian Brauner 2017-05-29 14:59:21 +02:00
parent 955912f007
commit 62a085fb89
No known key found for this signature in database
GPG Key ID: 8EB056D53EECB12D

View File

@ -1525,11 +1525,13 @@ static int sig_parse(const char *signame) {
static int config_haltsignal(const char *key, const char *value,
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->haltsignal = sig_n;