Skip to content

Commit

Permalink
attach: order variables correctly
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
  • Loading branch information
Christian Brauner committed Feb 26, 2021
1 parent 7a12ba3 commit a8355ea
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/lxc/attach.c
Expand Up @@ -948,19 +948,17 @@ int lxc_attach(struct lxc_container *container, lxc_attach_exec_t exec_function,
pid_t *attached_process)
{
__do_free char *cwd = NULL;
int ret_parent = -1;
struct attach_clone_payload payload = {};
struct lxc_epoll_descr descr = {};
int i, ret, status;
char *name, *lxcpath, *new_cwd;
int ipc_sockets[2];
char *new_cwd;
signed long personality;
pid_t attached_pid, init_pid, pid;
pid_t attached_pid, init_pid, pid, to_cleanup_pid;
struct lxc_proc_context_info *init_ctx;
struct lxc_terminal terminal;
struct lxc_conf *conf;
char *name, *lxcpath;
struct attach_clone_payload payload = {0};
int ret_parent = -1;
pid_t to_cleanup_pid;
struct lxc_epoll_descr descr = {0};

ret = access("/proc/self/ns", X_OK);
if (ret)
Expand Down

0 comments on commit a8355ea

Please sign in to comment.