mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-03 02:46:50 +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)
|
||||
{
|
||||
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 *)
|
||||
|
Loading…
Reference in New Issue
Block a user