Skip to content

Commit

Permalink
lxccontainer: do_lxcapi_console_getfd()
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 24, 2018
1 parent 8e59e0b commit 37dce81
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/lxc/lxccontainer.c
Expand Up @@ -523,12 +523,10 @@ WRAP_API(bool, lxcapi_unfreeze)

static int do_lxcapi_console_getfd(struct lxc_container *c, int *ttynum, int *masterfd)
{
int ttyfd;
if (!c)
return -1;

ttyfd = lxc_console_getfd(c, ttynum, masterfd);
return ttyfd;
return lxc_console_getfd(c, ttynum, masterfd);
}

WRAP_API_2(int, lxcapi_console_getfd, int *, int *)
Expand Down

0 comments on commit 37dce81

Please sign in to comment.