mirror of
https://github.com/systemd/systemd.git
synced 2025-02-04 21:47:31 +03:00
ptyfwd: make master terminal attributes raw, too
This commit is contained in:
parent
ccf22d4a10
commit
e7d43b3cc3
@ -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;
|
||||
bool saved_stdin = false;
|
||||
bool saved_stdout = false;
|
||||
struct termios master_attr;
|
||||
bool saved_stdin = false, saved_stdout = false;
|
||||
struct winsize ws;
|
||||
int r;
|
||||
|
||||
@ -369,6 +369,11 @@ 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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user