From c1a64603550d4253726d2a06b4eb27a51e7006d4 Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Tue, 30 May 2017 04:48:02 +0200 Subject: [PATCH] confile: config_haltsignal() Signed-off-by: Christian Brauner --- src/lxc/confile.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/lxc/confile.c b/src/lxc/confile.c index 767b1e327..e52d5e23c 100644 --- a/src/lxc/confile.c +++ b/src/lxc/confile.c @@ -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)