TIOCPKT not cleared ?

Matthias Urlichs (smurf@smurf.noris.de)
Tue, 20 Feb 1996 12:55:45 +0100


Hi,

playing with ssh (very neat...) I noticed that if some other program us=
es a
pty in packet mode, and that pty subsequently gets reused by ssh, thing=
s
don't work. Apparently, packet mode isn't cleared between closes.

I don't quite think that makes sense -- pty handling is so diverse betw=
een
Unixes that I don't think we can expect all pty-using programs to know
about TIOCPKT.

I've hacked the appropriate call into ssh, but personally I'd rather se=
e
an appropriate assignment in drivers/char/pty.c:pty_close()..?

--=20
A mathematician is a machine for converting coffee into theorems.
--=20
Matthias Urlichs \ XLink-POP N=FCrnberg | EMail: urlichs@smurf.=
noris.de
Schleiermacherstra=DFe 12 \ Unix+Linux+Mac | Phone: ...please use =
email.
90491 N=FCrnberg (Germany) \ Consulting+Networking+Programming+etc'i=
ng 42
PGP: 1B 89 E2 1C 43 EA 80 44 15 D2 29 CF C6 C7 E0 DE=20
Click <A HREF=3D"http://smurf.noris.de/~smurf/finger">here</A>.