mirror of
git://github.com/lxc/lxc
synced 2025-09-05 13:09:35 +00:00
console: lxc_terminal_set_stdfds()
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
@@ -905,7 +905,7 @@ err:
|
||||
return -ENODEV;
|
||||
}
|
||||
|
||||
int lxc_console_set_stdfds(int fd)
|
||||
int lxc_terminal_set_stdfds(int fd)
|
||||
{
|
||||
if (fd < 0)
|
||||
return 0;
|
||||
@@ -1122,7 +1122,7 @@ int lxc_login_pty(int fd)
|
||||
if (ret < 0)
|
||||
return -1;
|
||||
|
||||
ret = lxc_console_set_stdfds(fd);
|
||||
ret = lxc_terminal_set_stdfds(fd);
|
||||
if (ret < 0)
|
||||
return -1;
|
||||
|
||||
|
@@ -148,7 +148,7 @@ extern int lxc_console_getfd(struct lxc_container *c, int *ttynum,
|
||||
* fd is made a duplicate of a specific standard file descriptor iff the
|
||||
* standard file descriptor refers to a pty.
|
||||
*/
|
||||
extern int lxc_console_set_stdfds(int fd);
|
||||
extern int lxc_terminal_set_stdfds(int fd);
|
||||
|
||||
/*
|
||||
* Handler for events on the stdin fd of the pty. To be registered via the
|
||||
|
@@ -1205,7 +1205,7 @@ static int do_start(void *data)
|
||||
if (handler->backgrounded || handler->conf->is_execute == 0)
|
||||
ret = set_stdfds(handler->conf->console.slave);
|
||||
else
|
||||
ret = lxc_console_set_stdfds(handler->conf->console.slave);
|
||||
ret = lxc_terminal_set_stdfds(handler->conf->console.slave);
|
||||
if (ret < 0) {
|
||||
ERROR("Failed to redirect std{in,out,err} to pty file "
|
||||
"descriptor %d", handler->conf->console.slave);
|
||||
|
Reference in New Issue
Block a user