confile: config_haltsignal()

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
Christian Brauner 2017-05-30 04:48:02 +02:00
parent 1045031e34
commit c1a6460355
No known key found for this signature in database
GPG Key ID: 8EB056D53EECB12D

View File

@ -1580,9 +1580,13 @@ static int config_haltsignal(const char *key, const char *value,
{
int sig_n;
if (config_value_empty(value))
/* Set config value to default. */
if (config_value_empty(value)) {
lxc_conf->haltsignal = 0;
return 0;
}
/* Parse new config value. */
sig_n = sig_parse(value);
if (sig_n < 0)