console: lxc_terminal_set_stdfds()

parent 548029fa
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment