]> git.proxmox.com Git - mirror_lxc.git/commitdiff
attach: do not make terminal raw
authorChristian Brauner <christian.brauner@ubuntu.com>
Sat, 30 Jun 2018 11:13:52 +0000 (13:13 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Mon, 2 Jul 2018 09:13:48 +0000 (11:13 +0200)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/attach.c

index 62f68c8231b86e1a4782fe01044935a4d39f31e8..bc98f67c5c6784921210350fb672dc857a40bc36 100644 (file)
@@ -980,7 +980,6 @@ static int lxc_attach_terminal(struct lxc_conf *conf,
                               struct lxc_terminal *terminal)
 {
        int ret;
-       struct termios oldtios;
 
        lxc_terminal_init(terminal);
 
@@ -990,12 +989,6 @@ static int lxc_attach_terminal(struct lxc_conf *conf,
                return -1;
        }
 
-       ret = lxc_setup_tios(terminal->master, &oldtios);
-       if (ret < 0) {
-               SYSERROR("Failed to setup terminal");
-               return -1;
-       }
-
        /* Shift ttys to container. */
        ret = lxc_terminal_map_ids(conf, terminal);
        if (ret < 0) {