X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fshared%2Fptyfwd.c;h=72aa59efb7e30be87ce82e8accd8470cae6a20a2;hb=0371ca0dac1d70b2e5060a3c4e6fbbc2bdbd8671;hp=85fc8f1b34f5c6770ad052d041e6d74e0f44dcd1;hpb=e7d43b3cc30764138c90eaaf95d3d8f49e448890;p=elogind.git diff --git a/src/shared/ptyfwd.c b/src/shared/ptyfwd.c index 85fc8f1b3..72aa59efb 100644 --- a/src/shared/ptyfwd.c +++ b/src/shared/ptyfwd.c @@ -343,8 +343,8 @@ static int process_pty_loop(int master, sigset_t *mask, pid_t kill_pid, int sign int process_pty(int master, sigset_t *mask, pid_t kill_pid, int signo) { struct termios saved_stdin_attr, raw_stdin_attr; struct termios saved_stdout_attr, raw_stdout_attr; - struct termios master_attr; - bool saved_stdin = false, saved_stdout = false; + bool saved_stdin = false; + bool saved_stdout = false; struct winsize ws; int r; @@ -369,11 +369,6 @@ int process_pty(int master, sigset_t *mask, pid_t kill_pid, int signo) { tcsetattr(STDOUT_FILENO, TCSANOW, &raw_stdout_attr); } - if (tcgetattr(master, &master_attr) >= 0) { - cfmakeraw(&master_attr); - tcsetattr(master, TCSANOW, &master_attr); - } - r = process_pty_loop(master, mask, kill_pid, signo); if (saved_stdout)