Unverified Commit ff305221 by Serge Hallyn Committed by GitHub

Merge pull request #2196 from brauner/2018-02-28/more_terminal_fixes

terminal: improvements and cleanup
parents 19462d43 e9a55b51
......@@ -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;
}
......@@ -958,7 +958,7 @@ static int attach_child_main(struct attach_clone_payload *payload)
}
if (options->attach_flags & LXC_ATTACH_ALLOCATE_PTY) {
ret = lxc_login_pty(payload->pty_fd);
ret = lxc_terminal_prepare_login(payload->pty_fd);
if (ret < 0) {
SYSERROR("Failed to prepare pty file descriptor %d", payload->pty_fd);
goto on_error;
......
......@@ -27,6 +27,7 @@
#include <stdint.h>
#include "list.h"
#define LXC_MAINLOOP_ERROR -1
#define LXC_MAINLOOP_CONTINUE 0
#define LXC_MAINLOOP_CLOSE 1
......
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