Displaying 2 results from an estimated 2 matches for "_saved_tio".
2004 Nov 22
1
patch to fix non-echo tty on scp SIGINT
...--
--- 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)
kill(do_cmd_pid, signo);
+ /* restore the terminal to its original state */
+ if (tcsetattr(fileno(stdin), TCSADRAIN, &_saved_tio) == -1)
+ perror("tcsetattr");
+...
2006 Jun 20
2
[PATCH] openssh pseudo-terminal bug
hello
short description:
ssh client sends a wrong all-zero terminal info when requesting forced pseudo-terminal
allocation while stdin is not a terminal.
sshd then sets the terminals ospeed to 0 because it receives this information from the
client. on solaris this means that the pseudo-terminal is closed and output of any
remote command is dropped.
longer description:
what we're doing is