From: Dong Liu (dliu@ace.njit.edu)
Date: 03/15/93


From: dliu@ace.njit.edu (Dong Liu)
Subject: Re: 0.99pl6 and serial login doesn't work for me
Date: 15 Mar 1993 23:02:45 GMT


>>>>> On 10 Mar 93 19:48:42 GMT, da188@city.ac.uk (The Eno) said:

> harakka_j@kulminator.salcom.fi writes:

>In article <ALARUIK.93Mar6011646@lesti.hut.fi>, alaruik@lesti.hut.fi (Pekka T Alaruikka) writes:
>> As the subject says it won't work for me. I use serpaches for 0.99pl6
>> and libc.so.4.3.2 and poeigl-1.11a. I read that they should work.
>> The promplem is when I am loggin via serial port, my terminal gets
>> stuck, and when I check it out from console with ps it shows that it is
>> running login file all the time and don't go any further.

>Gee, I almost thought that I'm alone with this problem...

> - juha -

> ME TOO! Has ANYBODY got logins to work over a serial line with this kernel?

> If anyone has an advice would they care to share it with us unenlightened
> ones?!

I found the problem is agetty cleared the CLOCAL bit in the c_cflag,
here is my fix:

in file agetty.c in poeigl-1.11a, around line 655, change the line

    tp->c_cflag = CS8 | HUPCL | CREAD | speed;

to

    ioctl (0, TCGETA, tp);
    tp->c_cflag = CS8 | HUPCL | CREAD | speed | (tp -> c_cflag &CLOCAL);

That works for me.

--dong