execute: do not check inherited fds again

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: 's avatarChristian Brauner <christian.brauner@ubuntu.com>
parent cbb8254f
......@@ -150,9 +150,6 @@ int lxc_execute(const char *name, char *const argv[], int quiet,
{
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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment