Subject: Re: bin/3229: pppd sometimes hangs restoring modes
To: None <bad@flatlin.ka.sub.org>
From: Mike Long <mike.long@analog.com>
List: netbsd-bugs
Date: 02/19/1997 11:21:52
>Date: 19 Feb 1997 02:51 +0100
>From: bad@flatlin.ka.sub.org (Christoph Badura)

>raeburn@raeburn.ORG (Ken Raeburn) writes:
>
>>This call uses TCSAFLUSH, my guess is that's why it's waiting.  But if
>>it's waiting to write characters to the modem, and it's in a mode
>>where it can't write characters because the modem has hung up, maybe
>>it should be discarding the pending output instead?
>
>With TCSAFLUSH it is supposed to flush the characters when setting the
>modes.

It flushes all input characters; all output characters must drain.
See termios(4) for details.
-- 
Mike Long <mike.long@analog.com>     <URL:http://www.shore.net/~mikel>
VLSI Design Engineer         finger mikel@shore.net for PGP public key
Analog Devices, CPD Division          CCBF225E7D3F7ECB2C8F7ABB15D9BE7B
Norwood, MA 02062 USA       (eq (opinion 'ADI) (opinion 'mike)) -> nil