The Unix Heritage Society mailing list
 help / color / mirror / Atom feed
* [TUHS] 4.3BSD help: getty ignoring modem status
@ 2017-03-19  5:57 Warren Toomey
  2017-03-19  6:18 ` Larry McVoy
  2017-03-19  8:06 ` Warren Toomey
  0 siblings, 2 replies; 11+ messages in thread
From: Warren Toomey @ 2017-03-19  5:57 UTC (permalink / raw)


Hi all, over on the uucp project we are struggling with a problem. If a
user is logged in with telnet, and they disconnect the telnet session,
their shell hangs around. The next person that telnets in gets the shell.

SimH, with the -a -m flags on a simulated DZ line, has these modem flags:

Telnet connected:    Modem Bits: DTR RTS DCD CTS DSR
Telnet disconnected: Modem Bits: DTR RTS         DSR

So, DCD and CTS are being dropped, but getty (or something) isn't responding
and (presumably) sending a HUP signal to the shell.

Is there anybody with some modem or getty knowledge that can help?

Thanks, Warren
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://minnie.tuhs.org/pipermail/tuhs/attachments/20170319/56ab3b16/attachment.sig>


^ permalink raw reply	[flat|nested] 11+ messages in thread
* [TUHS] 4.3BSD help: getty ignoring modem status
@ 2017-03-19  6:37 Noel Chiappa
  2017-03-19  7:46 ` Warren Toomey
  2017-03-19 13:44 ` Paul Ruizendaal
  0 siblings, 2 replies; 11+ messages in thread
From: Noel Chiappa @ 2017-03-19  6:37 UTC (permalink / raw)


    > From: Warren Toomey

    > So, DCD and CTS are being dropped, but getty (or something) isn't
    > responding and (presumably) sending a HUP signal to the shell.
    > Is there anybody with some modem or getty knowledge that can help?

I know very little of 4.x, but I did write a V6 DZ driver, back in the
Cenozoic or some such time period... :-)

Looking at the 4.3Tahoe (which particular 4.3 version is in question here,
anyway?) DZ driver:

  http://minnie.tuhs.org/cgi-bin/utree.pl?file=4.3BSD-Tahoe/usr/src/sys/vaxuba/dz.c

I find it hard (without further digging) to figure out how it gets from where
it should discover carrier has gone away (in dzrint(), from dztimer()) to the
rest of the system; they have added some linesw[] thing I don't know about.

Looking at the 4.2 driver:

  http://minnie.tuhs.org/cgi-bin/utree.pl?file=4.2BSD/usr/src/sys/vaxuba/dz.c

it seems (in the same routine) to do the right thing:

               gsignal(tp->t_pgrp, SIGHUP);

so in that version, it's sending a SIGHUP to the whole pgroup when the
carrier goes away - which should be the right thing.

	Noel


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2017-03-20  2:25 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-19  5:57 [TUHS] 4.3BSD help: getty ignoring modem status Warren Toomey
2017-03-19  6:18 ` Larry McVoy
2017-03-19  8:06 ` Warren Toomey
2017-03-19  9:57   ` Jacob Goense
2017-03-19 10:08   ` Warren Toomey
2017-03-19  6:37 Noel Chiappa
2017-03-19  7:46 ` Warren Toomey
2017-03-19 13:44 ` Paul Ruizendaal
2017-03-20  0:47   ` Erik E. Fair
2017-03-20  1:25     ` Erik E. Fair
2017-03-20  2:25       ` Clem Cole

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).