Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
struct lxc_conf {
/* Pointer to the name of the container. Do not free! */
const char *name;
- int is_execute;
char *fstab;
unsigned int tty;
unsigned int pts;
+ bool is_execute;
int reboot;
signed long personality;
struct utsname *utsname;
struct execute_args args = {.argv = argv, .quiet = quiet};
TRACE("Doing lxc_execute");
- handler->conf->is_execute = 1;
+ handler->conf->is_execute = true;
return __lxc_start(name, handler, &execute_start_ops, &args, lxcpath,
backgrounded, error_num);
}
* make sure that that pty is stdin,stdout,stderr.
*/
if (handler->conf->console.slave >= 0) {
- if (handler->backgrounded || handler->conf->is_execute == 0)
+ if (handler->backgrounded || !handler->conf->is_execute)
ret = set_stdfds(handler->conf->console.slave);
else
ret = lxc_terminal_set_stdfds(handler->conf->console.slave);