From: Christian Brauner Date: Sat, 26 May 2018 10:52:09 +0000 (+0200) Subject: conf: make close_all_fds a boolean X-Git-Tag: lxc-3.1.0~285^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b3187a814a4732689f4a08e1da760ff0e3a79e91;p=thirdparty%2Flxc.git conf: make close_all_fds a boolean Signed-off-by: Christian Brauner --- diff --git a/src/lxc/conf.h b/src/lxc/conf.h index cc6bda780..8dfc0dc96 100644 --- a/src/lxc/conf.h +++ b/src/lxc/conf.h @@ -254,7 +254,7 @@ struct lxc_conf { struct lxc_terminal console; struct lxc_rootfs rootfs; char *ttydir; - int close_all_fds; + bool close_all_fds; struct { unsigned int hooks_version; diff --git a/src/lxc/tools/arguments.h b/src/lxc/tools/arguments.h index 15941bcc3..788f056e3 100644 --- a/src/lxc/tools/arguments.h +++ b/src/lxc/tools/arguments.h @@ -83,7 +83,7 @@ struct lxc_arguments { int force; /* close fds from parent? */ - int close_all_fds; + bool close_all_fds; /* lxc-create */ char *bdevtype, *configfile, *template; diff --git a/src/lxc/tools/lxc_start.c b/src/lxc/tools/lxc_start.c index 1a68453f8..a4217736e 100644 --- a/src/lxc/tools/lxc_start.c +++ b/src/lxc/tools/lxc_start.c @@ -96,7 +96,7 @@ static int my_parser(struct lxc_arguments *args, int c, char *arg) args->rcfile = arg; break; case 'C': - args->close_all_fds = 1; + args->close_all_fds = true; break; case 's': return lxc_config_define_add(&defines, arg);