Skip to content

Commit

Permalink
lxc-binding: Remove master term
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Parrott <[email protected]>
  • Loading branch information
tomponline committed Jun 4, 2021
1 parent 5085d58 commit a3ace47
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lxc-binding.c
Original file line number Diff line number Diff line change
Expand Up @@ -243,14 +243,14 @@ bool go_lxc_clone(struct lxc_container *c, const char *newname, const char *lxcp
}

int go_lxc_console_getfd(struct lxc_container *c, int ttynum) {
int masterfd;
int mainfd;
int ret = 0;

ret = c->console_getfd(c, &ttynum, &masterfd);
ret = c->console_getfd(c, &ttynum, &mainfd);
if (ret < 0)
return ret;

return masterfd;
return mainfd;
}

bool go_lxc_console(struct lxc_container *c, int ttynum, int stdinfd, int stdoutfd, int stderrfd, int escape) {
Expand Down

0 comments on commit a3ace47

Please sign in to comment.