[comp.unix.questions] getty problems

rlw@ttardis.UUCP (Ron Wilson) (05/06/90)

This just happens to on a Unix-pc (aka 3B1), but shouldn't be specific to
that machine.

The stock getty program switches interface speeds just fine, but it doesn't
have an option to wait silently for an incoming call before issuing a log in
prompt.

So, I took the getty source from another machine we have (a 3B5, running Sys
V, release 3), and compiled it on the Unix-PC (that getty already had an
option to wait silently).

However, the getty from the 3B5 will only respond to ASCII NULL (ie: \0)
to make a speed change - it ignores BREAK, framing, and parity errors.

According to both the Unix-pc Unix manual section 7 "termio" and the same
in the 3B5 Unix manual, read(0, buf, 1) should return a \0 (ASCII NULL) in
buf[0] when any of BREAK, framing error, or parity error occures.  However,
this does not appear to be happening.

I've tried altering the settings the getty program uses on the port:
all on/off combinations of BRKINT, IGNPAR, and PARMRK to no avail (yes, I
did make sure that INGBRK is/was off).  I even tried using a catch routine
on SIGINT with BRKINT on: the catch routine was never called dispite
typing several BREAKs on a terminal I connected in place of the modem.

To double check, I tried to see it the 3B5 would switch speeds in response
to a BREAK or a framing error - it did not.  The 3B5's getty program
appears to be consistent in its "indifference" to BREAK and framing errors.

Unfortunately, we need BOTH "wait silently" feature and the "switch speeds
on BREAK or framing error" features of getty.

Since we don't have source for the Unix-pc's getty, I don't know what it
is doing differently from the 3B5's getty.

Any ideas or suggestions would be greatly appreciated.

Thanks in advance.

- Ron Wilson

----------------------------------------------------------------------------
"We were wondering when somebody would discover that one."
	- The response of a customer support rep to a customer's phoned in
	  bug report (name of company with held to protect the guilty).

rlw@ttardis	rel.mi.org!ttardis!rlw	  sharkey!cfctech!ttardis!rlw

thad@cup.portal.com (Thad P Floryan) (05/06/90)

{Re: getty problems}
{unix-pc.general,comp.sys.att,comp.unix.questions,comp.unix.wizards}

rlw@ttardis.UUCP (Ron Wilson) in <2535@ttardis.UUCP> writes about problems
with the stock 3B1 getty and the same problems with a 3B5 getty ported
over regarding recognition of BREAK to switch interface speeds (presumably
per his /etc/gettydefs).

He stated neither which version of the 3B1's OS, nor on which tty port the
problem occurs; this IS important missing info, because all versions of the
3B1 OS up to and including 3.51 have such a problem with BREAK on tty000 (the
built-in serial port) ... the problem ONLY occurs on tty000; using tty001 up
to tty006 works fine (with the expansion COMBO board software).

I reported this problem ages ago when I discovered it on a machine I was
going to use for a demo (my "normal" machine has multiple serial ports), and
the fix appears in the 3.51a kernel on "AT&T FIX 1014; 3.51 FIX DISK VER 1.0
UNIXPC" (circa January 1988) which can be had for free (2 floppies) by calling
the AT&T Hotline.  The fix is also incorporated in the latest kernel, 3.51m,
also available free from the Hotline (as FIX DISK VER 2.0, circa January 1990).

As far as getty waiting "silently," Ron should get the HDB uucp package for
the 3B1 available at MANY archive sites (as posted to the unix-pc.* newsgroups
on a regular basis), and use uugetty.  He'd still need the 3.51a (or 3.51m)
kernel fix for its tty000 driver concerning the BREAK problem on tty000.

There are ALSO many public domain and/or freely-redistributable "uugetty"
clones available with source at the usual archives sites.

Following is a typical ftp "dir" listing of the 3B1 HDB package as found
at sites such as osu-cis, max.physics.sunysb.edu, etc.  The uncompressed
"*+IN" files are directly installable using the "Install Software Sent By
Electronic Mail" menu selection of the "Software Setup" menu in the "Office
of install" if one uses the UA (User Agent (aka FACE)) on the 3B1; the files
are simply cpio archives and can be easily installed manually if you don't
use all the windowing and menu stuff:

	-r--r--r--   1 nuucp     209419 Apr 24 10:33 HDB3.5+IN.Z
	-r--r--r--   1 nuucp      66743 Apr 24 10:33 HDBADMIN+IN.Z
	-r--r--r--   1 nuucp      21213 Apr 24 10:33 HDBPRINT+IN.Z
	-r--r--r--   1 nuucp      58063 Apr 24 10:33 HONEYDOCS+IN.Z

Thad Floryan [ thad@cup.portal.com (OR) ..!sun!portal!cup.portal.com!thad ]