search for: ttyfix

Displaying 1 result from an estimated 1 matches for "ttyfix".

Did you mean: tty_io
2004 Nov 22
1
patch to fix non-echo tty on scp SIGINT
...I think it is good general practice to leave the terminal in the same state that it began in. Even if the ssh process were hardlocked this would still restore the terminal. Adam -------------- next part -------------- --- openssh-3.9p1/scp.c 2004-08-13 04:19:38.000000000 -0700 +++ openssh-3.9p1-ttyfix/scp.c 2004-11-22 00:54:45.679885981 -0800 @@ -105,12 +105,19 @@ /* This is used to store the pid of ssh_program */ pid_t do_cmd_pid = -1; +/* Save terminal state for restore on exit */ +static struct termios _saved_tio; + static void killchild(int signo) { if (do_cmd_pid > 1)...