Skip to content

Commit

Permalink
Merge pull request #2881 from Blub/2019-02-25/lxc-attach-move_fd
Browse files Browse the repository at this point in the history
attach: use move_fd in lxc_proc_close_ns_fd
  • Loading branch information
brauner committed Feb 25, 2019
2 parents de24eb5 + 5f9facd commit 1fe8dff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lxc/attach.c
Expand Up @@ -126,7 +126,7 @@ static struct lxc_proc_context_info *lxc_proc_get_context_info(pid_t pid)
static inline void lxc_proc_close_ns_fd(struct lxc_proc_context_info *ctx)
{
for (int i = 0; i < LXC_NS_MAX; i++) {
__do_close_prot_errno int fd = ctx->ns_fd[i];
__do_close_prot_errno int fd = move_fd(ctx->ns_fd[i]);
}
}

Expand Down

0 comments on commit 1fe8dff

Please sign in to comment.