Merging upstream version 2.1.0.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
baec2072b7
commit
3dd5d77fd3
15 changed files with 147 additions and 23 deletions
|
@ -228,6 +228,13 @@ int option_parse(options_t* options, const char* option)
|
|||
options->bpf_hosts_apply_all = 1;
|
||||
return 0;
|
||||
}
|
||||
} else if (have("pid_file")) {
|
||||
if (options->pid_file) {
|
||||
free(options->pid_file);
|
||||
}
|
||||
if ((options->pid_file = strdup(argument))) {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
return 1;
|
||||
|
@ -244,5 +251,9 @@ void options_free(options_t* options)
|
|||
free(options->group);
|
||||
options->group = 0;
|
||||
}
|
||||
if (options->pid_file) {
|
||||
free(options->pid_file);
|
||||
options->pid_file = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue