So what should I do to be able to use the modem after its
been used for PPP? I tried stty -a -f < /dev/ttyS1 and it
just hangs. I have :

44-> stty --version
stty (GNU sh-utils) 1.16

The man page for stty doesn't mention the -f flag.


On Sat, 24 Apr 1999, Paul Mackerras wrote:

> The tty is set -clocal so that we notice when the modem hangs up.
> When the tty is set -clocal, an open will hang waiting for the carrier
> detect (CD) signal unless the O_NDELAY flag is set in the open call.
> (That's how pppd opens it.)
> 
> pppd does try to restore the terminal parameters that the tty had when
> pppd first opened it.  But the way the Linux tty stuff works is that
> once the modem has signalled a hangup (by dropping CD), you can't do a
> single thing with the open file descriptor you have to the tty except
> close it.  So pppd can't restore the terminal parameters (it would
> have to close and reopen the tty, which it doesn't do).
> 
> The BSD stty program takes a -f flag as in:
>       stty -a -f /dev/ttyxx
> which opens the tty with the O_NDELAY flag, which is the Right Thing
> for stty since you would never want stty to wait for CD.
> 
> Paul.
> 


-
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to [EMAIL PROTECTED]

Reply via email to