Skip to contentSkip to conversation

Fix standards compliance bugs in the tty layer

PATCH [email protected] 1 participant 1 message May 15, 2003 Char and misc drivers

lore
Share & tools
lore
#0 lore raw

This went into 2.4 back last August with the comment in $subject.

drivers/char/tty_ioctl.c +2 -2
diff -urpN --exclude-from=/home/davej/.exclude bk-linus/drivers/char/tty_ioctl.c linux-2.5/drivers/char/tty_ioctl.c
@@ -394,7 +394,7 @@ int n_tty_ioctl(struct tty_struct * tty,
 				return -EFAULT;
 			return 0;
 		case TCSETSF:
-			return set_termios(real_tty, arg,  TERMIOS_FLUSH);
+			return set_termios(real_tty, arg,  TERMIOS_FLUSH | TERMIOS_WAIT);
 		case TCSETSW:
 			return set_termios(real_tty, arg, TERMIOS_WAIT);
 		case TCSETS:
@@ -402,7 +402,7 @@ int n_tty_ioctl(struct tty_struct * tty,
 		case TCGETA:
 			return get_termio(real_tty,(struct termio *) arg);
 		case TCSETAF:
-			return set_termios(real_tty, arg, TERMIOS_FLUSH | TERMIOS_TERMIO);
+			return set_termios(real_tty, arg, TERMIOS_FLUSH | TERMIOS_WAIT | TERMIOS_TERMIO);
 		case TCSETAW:
 			return set_termios(real_tty, arg, TERMIOS_WAIT | TERMIOS_TERMIO);
 		case TCSETA: