aboutsummaryrefslogtreecommitdiff
path: root/src/slattach_rts.diff
blob: d14afe19c6c9e5b986629249246e1e618eb2c8cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
--- net-tools-1.60/slattach.c	2008-11-01 12:29:56.000000000 -0400
+++ net-tools-1.60.patched/slattach.c	2008-10-31 21:41:43.000000000 -0400
@@ -347,6 +347,7 @@
 	tty->c_cflag |= CLOCAL;
   else
 	tty->c_cflag |= CRTSCTS;
+  tty->c_cflag &= ~CRTSCTS; /* 20081031 bkw: need or not? */
   tty->c_cflag |= speed;			/* restore speed	*/
   return(0);
 }
@@ -723,6 +724,15 @@
   (void) signal(SIGQUIT, sig_catch);
   (void) signal(SIGTERM, sig_catch);
 
+	/* 20081031 bkw: force RTS off (Tucker sio2pc) */
+	{
+		int tstatus;
+		fprintf(stderr, "slattach: RTS forced off (Tucker SIO2PC)\n");
+		ioctl(tty_fd, TIOCMGET, &tstatus);
+		tstatus &= ~TIOCM_RTS;
+		ioctl(tty_fd, TIOCMSET, &tstatus);
+	}
+
   /* Wait until we get killed if hanging on a terminal. */
   if (opt_e == 0) {
 	while(1) {