]> sourceware.org Git - newlib-cygwin.git/commit
Cygwin: serial: tcsetattr: set timeouts unconditionally
authorCorinna Vinschen <corinna@vinschen.de>
Mon, 23 Mar 2020 11:13:35 +0000 (12:13 +0100)
committerCorinna Vinschen <corinna@vinschen.de>
Mon, 23 Mar 2020 11:13:35 +0000 (12:13 +0100)
commit912c90261559914d931f0764f836217d939b1112
tree6df05c9392bfc3d9502e71f9c58e386a35b32fbf
parent72294cd21175c307a6552416b249fc8d66ee0bbc
Cygwin: serial: tcsetattr: set timeouts unconditionally

tcsetattr checks if the VTIME and VMIN values changed and only
calls SetCommTimeouts if so.  That's a problem if tcsetattr
is supposed to set VTIME and VIMN to 0, because these are the
start values anyway.  But this requires to set ReadIntervalTimeout
to MAXDWORD, which just doesn't happen.

Fix this by dropping the over-optimization of checking the old
values before calling SetCommTimeouts,

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
winsup/cygwin/fhandler_serial.cc
This page took 0.029176 seconds and 5 git commands to generate.