terminal: lxc_make_controlling_terminal()

parent 71ac3f07
...@@ -846,7 +846,7 @@ static int attach_child_main(struct attach_clone_payload *payload) ...@@ -846,7 +846,7 @@ static int attach_child_main(struct attach_clone_payload *payload)
} }
if (options->stdin_fd > 0 && isatty(options->stdin_fd)) { if (options->stdin_fd > 0 && isatty(options->stdin_fd)) {
ret = lxc_make_controlling_pty(options->stdin_fd); ret = lxc_make_controlling_terminal(options->stdin_fd);
if (ret < 0) if (ret < 0)
goto on_error; goto on_error;
} }
......
...@@ -1131,7 +1131,7 @@ close_fds: ...@@ -1131,7 +1131,7 @@ close_fds:
return ret; return ret;
} }
int lxc_make_controlling_pty(int fd) int lxc_make_controlling_terminal(int fd)
{ {
int ret; int ret;
...@@ -1148,7 +1148,7 @@ int lxc_login_pty(int fd) ...@@ -1148,7 +1148,7 @@ int lxc_login_pty(int fd)
{ {
int ret; int ret;
ret = lxc_make_controlling_pty(fd); ret = lxc_make_controlling_terminal(fd);
if (ret < 0) if (ret < 0)
return -1; return -1;
......
...@@ -281,7 +281,7 @@ extern int lxc_terminal_create_log_file(struct lxc_terminal *console); ...@@ -281,7 +281,7 @@ extern int lxc_terminal_create_log_file(struct lxc_terminal *console);
extern int lxc_terminal_io_cb(int fd, uint32_t events, void *data, extern int lxc_terminal_io_cb(int fd, uint32_t events, void *data,
struct lxc_epoll_descr *descr); struct lxc_epoll_descr *descr);
extern int lxc_make_controlling_pty(int fd); extern int lxc_make_controlling_terminal(int fd);
extern int lxc_login_pty(int fd); extern int lxc_login_pty(int fd);
extern void lxc_terminal_conf_free(struct lxc_terminal *console); extern void lxc_terminal_conf_free(struct lxc_terminal *console);
extern void lxc_terminal_info_init(struct lxc_terminal_info *pty); extern void lxc_terminal_info_init(struct lxc_terminal_info *pty);
......
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