Subject: Re: Printer tty device
To: Michael Wolfson <michael@nosflow.com>
From: Bill Studenmund <wrstuden@netbsd.org>
List: port-macppc
Date: 01/23/2004 14:24:15
--NGIwU0kFl1Z1A3An
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Jan 14, 2004 at 09:58:08AM -0800, Michael Wolfson wrote:
>=20
> On Jan 14, 2004, at 4:52 AM, Thomas Miller wrote:
>=20
> ># ps aux | grep tty
> >root 180  0.0  0.5  48   652 ?? S     5:00AM 0:00.11=20
> >/usr/libexec/getty std.38400 tty00
> >
> >mean that tty00 is root's terminal on this machine,
> >which, in turn, would mean that tty00 could not be
> >either the printer port or the serial port?
>=20
> Not quite.  The root process always owns getty (which provides a login=20
> prompt).  There is a login prompt running on tty00.  If you look in=20
> /etc/ttys, it shows that tty00 is enabled to have a terminal on it. =20
> So, even if you have nothing connected to the tty00 port, NetBSD is=20
> waiting patiently for someone to log in there.
>=20
> I'm not sure why this is enabled by default, since if you have a serial=
=20
> console, it ought to know, based on the "console" line in /etc/ttys=20
> that it should provide the login prompt on the console device.

The current /etc/ttys default is to have "console" off and enable getty on=
=20
the individual input devices.

> >Just to be blindingly clear, are you saying that
> >the printer port on my 7300/200 running 1.6 is
> >/dev/tty01 ?
>=20
> I'm not sure, I've never really used serial ports on NetBSD/macppc. =20
> AFAICT, your printer port is either /dev/tty00 or /dev/tty01, and tty00=
=20
> is running getty by default at 38400 8N1.

tty00 is the modem port, and tty01 is the printer port. Later systems that=
=20
only had one port were a bit sloppy about this.

Take care,

Bill

--NGIwU0kFl1Z1A3An
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (NetBSD)

iD8DBQFAEZ8PWz+3JHUci9cRAvE6AJ0QdQeTC822ntNnY6eqePWeAneyUACbBHXa
DSBh2vqYQ2FDTqD2qxNR080=
=sJBp
-----END PGP SIGNATURE-----

--NGIwU0kFl1Z1A3An--