From: Christian Brauner Date: Tue, 30 May 2017 02:50:09 +0000 (+0200) Subject: confile: config_stopsignal() X-Git-Tag: lxc-2.1.0~110^2~116 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4100d1a7865276ad584cd32bcdc246aaff5707bc;p=thirdparty%2Flxc.git confile: config_stopsignal() Signed-off-by: Christian Brauner --- diff --git a/src/lxc/confile.c b/src/lxc/confile.c index c83ce30b9..87d0e6eaf 100644 --- a/src/lxc/confile.c +++ b/src/lxc/confile.c @@ -1621,9 +1621,13 @@ static int config_stopsignal(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->stopsignal = 0; return 0; + } + /* Parse new config value. */ sig_n = sig_parse(value); if (sig_n < 0) return -1;