Bug in stty or /dev/ttySx handling code

Christopher Faylor cgf-no-personal-reply-please@cygwin.com
Thu Aug 11 17:33:00 GMT 2005


On Thu, Aug 11, 2005 at 10:36:16AM -0600, Troy Curtiss wrote:
>Hi Peter,
> That was my patch applied back in 02/01/2003 and upon re-examining it, 
>I believe this is an error.  The intended behavior was as follows:
>
>1) When a baud rate of B0 is passed to tcsetattr(), it should not change 
>the actual baud rate, but instead drop DTR.
>2) In tcgetattr(), the presently set baud rate should be returned, 
>regardless of the state of DTR.
>
>My earlier patch violates #2.  I am sending a patch to fix this to 
>cygwin-patches right now (CC'ing you, as well.)  Thanks for bringing 
>this to my attention - I don't know what I was thinking that day :)

A snapshot with Tony's patch is available at:

http://cygwin.com/snapshots/

FYI,
cgf

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list