mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-09 17:18:56 +00:00
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: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
parent
cef701ede3
commit
c7a2deb2dc
@ -116,9 +116,6 @@ int lxc_execute(const char *name, char *const argv[], int quiet,
|
|||||||
{
|
{
|
||||||
struct execute_args args = {.argv = argv, .quiet = 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;
|
handler->conf->is_execute = 1;
|
||||||
return __lxc_start(name, handler, &execute_start_ops, &args, lxcpath,
|
return __lxc_start(name, handler, &execute_start_ops, &args, lxcpath,
|
||||||
backgrounded, error_num);
|
backgrounded, error_num);
|
||||||
|
Loading…
Reference in New Issue
Block a user