Messages in this thread Patch in this message | | | From | Matthias Urlichs <> | Subject | Re: Bug in pty re-usage | Date | Sat, 28 Sep 1996 06:38:13 +0100 |
| |
In linux.dev.kernel, article <9609261958.ZM572@DrJES.EDnet.NS.Ca>, James MacLean <macleajb@ednet.ns.ca> writes: > > As another example that way relate to this... I have found that when using ppp > over ssh, that if the connection comes up with a bunch of errors, that > switching to a different pty seems to fix it. > That's a different problem. Packet mode is left turned on sometimes.
As a workaround until the kernel gets fixed, install this patch:
Index: security/ssh/pty.c diff -u security/ssh/pty.c:1.1.1.2 security/ssh/pty.c:1.5 --- security/ssh/pty.c:1.1.1.2 Wed Jul 31 15:33:41 1996 +++ security/ssh/pty.c Wed Aug 28 10:19:33 1996 @@ -243,6 +243,12 @@ continue; sprintf(namebuf, "/dev/tty%c%c", ptymajors[i / num_minors], ptyminors[i % num_minors]); +#ifdef TIOCPKT + { + int i = 0; + ioctl(*ptyfd, TIOCPKT, &i); + } +#endif #ifdef HAVE_REVOKE if (revoke(namebuf) == -1) -- We humans are full of unpredictable emotions that logic cannot solve. -- Kirk, "What Are Little Girls Made Of?" stardate 2712.4 -- Matthias Urlichs \ noris network GmbH / Xlink-POP Nürnberg Schleiermacherstraße 12 \ Linux+Internet / EMail: urlichs@noris.de 90491 Nürnberg (Germany) \ Consulting+Programming+Networking+etc'ing PGP: 1024/4F578875 1B 89 E2 1C 43 EA 80 44 15 D2 29 CF C6 C7 E0 DE Click <A HREF="http://info.noris.de/~smurf/finger">here</A>. 42
| |