*BSD News Article 18316


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!agate!howland.reston.ans.net!ux1.cso.uiuc.edu!uwm.edu!cs.utexas.edu!milano!uudell!obiwan!bob
From: bob@obiwan.uucp (Bob Willcox)
Newsgroups: comp.os.386bsd.questions
Subject: Re: sio - problem with login hanging up
Message-ID: <CA203J.Dsy@obiwan.uucp>
Date: 12 Jul 93 13:28:15 GMT
References: <g89r4222.742204159@kudu>
Organization: Bob's Place, Austin TX
Lines: 64

In article <g89r4222.742204159@kudu> g89r4222@kudu.ru.ac.za (Geoff Rehmet) writes:
>
>Hi,
>
>I have just installed the sio drivers in my kernel, but have
>encountered a couple of problems.  I have 2 serial ports
>configured, one of which is a mouse (still works fine) and the
>other is connected to a PC which can be used as a dumb terminal.
>
>The problems start when I try to log in from the PC: after I
>enter a login name the line hangs, I don't get a password prompt,
>and I am left with a login process sitting there.  (The setup I
>have worked perfectly - apart from silo overflows - with the old
>com drivers.)

I recall a similar problem on my systems here after switching to
use the sio driver.  Along the way, I discovered that if I commented
out the set_ttydefaults(0) right before the execle() to login that
it would work okay.  Later, while I was trying to get 8-bit, no
parity to work I then found that this created another problem.  I
could get getty to put up the login prompt in 8 bits (by changing
gettytab) but as soon as it exec'd to login I was back in 7 bit
mode (as it seemed, anyway).  What I wound up doing was to restore
the call to set_ttydefaults in getty and change ttydefaults.c as
follows:


===================================================================
RCS file: /usr/src/libexec/getty/RCS/ttydefaults.c,v
retrieving revision 1.1
diff -c -r1.1 /usr/src/libexec/getty/ttydefaults.c
*** /tmp/,RCSt1017816	Mon Jul 12 08:26:05 1993
--- /usr/src/libexec/getty/ttydefaults.c	Wed Jul  7 11:34:35 1993
***************
*** 46,51 ****
  	term.c_iflag = TTYDEF_IFLAG;
  	term.c_oflag = TTYDEF_OFLAG;
  	term.c_lflag = TTYDEF_LFLAG;
! 	term.c_cflag = TTYDEF_CFLAG;
  	tcsetattr(fd, TCSAFLUSH, &term);
  }
--- 46,52 ----
  	term.c_iflag = TTYDEF_IFLAG;
  	term.c_oflag = TTYDEF_OFLAG;
  	term.c_lflag = TTYDEF_LFLAG;
! /*	term.c_cflag = TTYDEF_CFLAG;		   RWW */
! 	term.c_cflag = (CREAD | CS8 | HUPCL);	/* RWW */
  	tcsetattr(fd, TCSAFLUSH, &term);
  }

I never did investigate as to exactly why this worked, though.  (I
was *very* pressed for time to get obiwan [this system] back on
the air.)

>
>Any help would be appreciated.

Hope this helps.


-- 
Bob Willcox                ...!{rutgers|ames}!cs.utexas.edu!uudell!obiwan!bob
Phone: 512 258-4224 (home)
       512 838-3914 (work)