This is already done in do_lxcapi_start{l}() so a) no need to do it again here
and b) this would close the state socket pair sockets, corrup the fd, and lead
to EBADF.
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
{
struct execute_args args = {.argv = argv, .quiet = quiet};
- if (lxc_check_inherited(handler->conf, false, &handler->conf->maincmd_fd, 1))
- return -1;
-
handler->conf->is_execute = 1;
return __lxc_start(name, handler, &execute_start_ops, &args, lxcpath,
backgrounded, error_num);