PPP & mgetty problem ???

Gert Doering (gert@greenie.muc.de)
Thu, 12 Sep 1996 15:17:12 +0200


Hi,

CC: to the mgetty mailing list, as I am no Linux or ppp expert...

William Theodore Woo wrote:
> [ difficulties between mgetty and PPP ]
> 
> I finally had it solved (well, kind of :) ). I have both PPP and mgetty
> looking at the same lock (/var/lock/ttyS3). 

I assume you mean /var/lock/LCK..ttyS3, but this is more or less cosmetical.

> I can now dial out and in with
> the same modem line. However, when I'm using the modem to dial out to my
> ISP, mgetty will complain about having "tcsetattr" error (in tio.c).

It will only do this if it doesn't find a valid lock file. For example,
if you create a lock file with "chat"'s process id in it, and this PID
is no longer valid after chat terminates. So, mgetty will try to reclaim
the line, which it can't because PPPd has switched its line discipline
to "PPP".