terminal: lxc_make_controlling_terminal()

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
Christian Brauner 2018-02-28 12:46:36 +01:00
parent 71ac3f071b
commit cd0a2b2f0b
No known key found for this signature in database
GPG Key ID: 8EB056D53EECB12D
3 changed files with 4 additions and 4 deletions

View File

@ -846,7 +846,7 @@ static int attach_child_main(struct attach_clone_payload *payload)
}
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)
goto on_error;
}

View File

@ -1131,7 +1131,7 @@ close_fds:
return ret;
}
int lxc_make_controlling_pty(int fd)
int lxc_make_controlling_terminal(int fd)
{
int ret;
@ -1148,7 +1148,7 @@ int lxc_login_pty(int fd)
{
int ret;
ret = lxc_make_controlling_pty(fd);
ret = lxc_make_controlling_terminal(fd);
if (ret < 0)
return -1;

View File

@ -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,
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 void lxc_terminal_conf_free(struct lxc_terminal *console);
extern void lxc_terminal_info_init(struct lxc_terminal_info *pty);