Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!utgpu!water!watmath!clyde!cbosgd!mandrill!hal!ncoast!allbery
From: allbery@ncoast.UUCP
Newsgroups: comp.sys.att
Subject: Re: Adding extra console window gettys: maybe not a good idea
Message-ID: <6296@ncoast.UUCP>
Date: Sat, 28-Nov-87 18:40:28 EST
Article-I.D.: ncoast.6296
Posted: Sat Nov 28 18:40:28 1987
Date-Received: Tue, 1-Dec-87 05:09:31 EST
References: <750@neoucom.UUCP> <162@manta.UUCP> <2031@crash.cts.com>
Reply-To: allbery@ncoast.UUCP (Brandon Allbery)
Followup-To: comp.sys.att
Organization: Cleveland Public Access UN*X, Cleveland, Oh
Lines: 18

As quoted from <2031@crash.cts.com> by ford@crash.cts.com (Michael Ditto):
+---------------
| I have had two gettys running on /dev/window for a few months.  I have
| encountered only one problem:  getlogin(3C) does not work correctly
| for the second getty (whichever one is last in /etc/inittab).  So,
| for example, when running hack, my name is shown as "LOGIN" if I happen
| to be on the "second" getty and the first one is idle.  Since there is
| no easy way to distinguish the two, it is difficult to log in on the
| "correct" window.
+---------------

The fix is quite easy:  link /dev/window to another name or two, such as
/dev/window1 and /dev/window2; then specify a different name for each of
the getty's.  Then getlogin() can easily determine the correct window.
-- 
Brandon S. Allbery		      necntc!ncoast!allbery@harvard.harvard.edu
 {hoptoad,harvard!necntc,cbosgd,sun!mandrill!hal,uunet!hnsurg3}!ncoast!allbery
			Moderator of comp.sources.misc