mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-06 01:45:47 +00:00
lxccontainer: do_lxcapi_console_getfd()
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
parent
8e59e0bab2
commit
37dce81753
@ -523,12 +523,10 @@ WRAP_API(bool, lxcapi_unfreeze)
|
|||||||
|
|
||||||
static int do_lxcapi_console_getfd(struct lxc_container *c, int *ttynum, int *masterfd)
|
static int do_lxcapi_console_getfd(struct lxc_container *c, int *ttynum, int *masterfd)
|
||||||
{
|
{
|
||||||
int ttyfd;
|
|
||||||
if (!c)
|
if (!c)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
ttyfd = lxc_console_getfd(c, ttynum, masterfd);
|
return lxc_console_getfd(c, ttynum, masterfd);
|
||||||
return ttyfd;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
WRAP_API_2(int, lxcapi_console_getfd, int *, int *)
|
WRAP_API_2(int, lxcapi_console_getfd, int *, int *)
|
||||||
|
Loading…
Reference in New Issue
Block a user