ntdll: Clear IEXTEN when clearing ICANON.

This commit is contained in:
G. Paul Ziemba 2009-01-06 11:40:09 -08:00 committed by Alexandre Julliard
parent 3613b15785
commit df05a90a3f
1 changed files with 5 additions and 1 deletions

View File

@ -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;