G. Paul Ziemba : ntdll: Clear IEXTEN when clearing ICANON.
Alexandre Julliard
julliard at winehq.org
Wed Jan 7 10:57:16 CST 2009
Module: wine
Branch: master
Commit: df05a90a3fd617205696078c6c0e77c50d7a8d5c
URL: http://source.winehq.org/git/wine.git/?a=commit;h=df05a90a3fd617205696078c6c0e77c50d7a8d5c
Author: G. Paul Ziemba <p-wine-bugs at ziemba.us>
Date: Tue Jan 6 11:40:09 2009 -0800
ntdll: Clear IEXTEN when clearing ICANON.
---
dlls/ntdll/serial.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/dlls/ntdll/serial.c b/dlls/ntdll/serial.c
index 40262a4..c8d3b29 100644
--- a/dlls/ntdll/serial.c
+++ b/dlls/ntdll/serial.c
@@ -651,7 +651,11 @@ static NTSTATUS set_line_control(int fd, const SERIAL_LINE_CONTROL* slc)
port.c_cflag &= ~(HUPCL);
port.c_cflag |= CLOCAL | CREAD;
- port.c_lflag &= ~(ICANON|ECHO|ISIG);
+ /*
+ * on FreeBSD, turning off ICANON does not disable IEXTEN,
+ * so we must turn it off explicitly. No harm done on Linux.
+ */
+ port.c_lflag &= ~(ICANON|ECHO|ISIG|IEXTEN);
port.c_lflag |= NOFLSH;
bytesize = slc->WordLength;
More information about the wine-cvs
mailing list