mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-16 09:01:09 +00:00
terminal: lxc_make_controlling_terminal()
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
parent
71ac3f071b
commit
cd0a2b2f0b
@ -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:
|
|||||||
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)
|
|||||||
{
|
{
|
||||||
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);
|
|||||||
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);
|
||||||
|
Loading…
Reference in New Issue
Block a user