mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-15 13:47:41 +00:00
confile: config_haltsignal()
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
parent
955912f007
commit
62a085fb89
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user