Skip to content

Commit

Permalink
confile: config_monitor()
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
  • Loading branch information
Christian Brauner authored and stgraber committed Jul 1, 2017
1 parent 18c979c commit b1ba810
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lxc/confile.c
Expand Up @@ -1196,6 +1196,9 @@ static int config_start(const char *key, const char *value,
static int config_monitor(const char *key, const char *value,
struct lxc_conf *lxc_conf)
{
if (config_value_empty(value))
return 0;

if(strcmp(key, "lxc.monitor.unshare") == 0) {
if (lxc_safe_uint(value, &lxc_conf->monitor_unshare) < 0)
return -1;
Expand Down

0 comments on commit b1ba810

Please sign in to comment.