PR 16828 dlls/ntdll/serial.c clear IEXTEN when clearing ICANON

G. Paul Ziemba p-wine-bugs at ziemba.us
Tue Jan 6 12:49:40 CST 2009


FreeBSD fix for Nirvis CDJ application, PR 16828


--- dlls/ntdll/serial.c.orig	2008-12-20 06:55:38.000000000 -0800
+++ dlls/ntdll/serial.c	2009-01-05 21:35:47.000000000 -0800
@@ -648,7 +648,9 @@
     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;


-- 
G. Paul Ziemba
FreeBSD unix:
10:46AM  up 12 days, 21:25, 10 users, load averages: 0.21, 0.29, 0.23



More information about the wine-patches mailing list