If hardware flow control is turned on by mistake, and a character is sent, it is impossible to turn flow control off again using stty(1) because stty uses tcsetattr(3) with TCSADRAIN, which waits for output to be empty. Obviously that's not going to happen...

The appended patch fixes this by adding a new flag "-i" (or "--immed") which causes stty to use TCSANOW instead.

Hmm. Does this happen often?
Mike Stone



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to