Commit 87536156 authored by Dave Jones's avatar Dave Jones Committed by Linus Torvalds

[PATCH] Fix standards compliance bugs in the tty layer

This went into 2.4 back last August with the comment in $subject.
parent 04d882c4
...@@ -394,7 +394,7 @@ int n_tty_ioctl(struct tty_struct * tty, struct file * file, ...@@ -394,7 +394,7 @@ int n_tty_ioctl(struct tty_struct * tty, struct file * file,
return -EFAULT; return -EFAULT;
return 0; return 0;
case TCSETSF: case TCSETSF:
return set_termios(real_tty, arg, TERMIOS_FLUSH); return set_termios(real_tty, arg, TERMIOS_FLUSH | TERMIOS_WAIT);
case TCSETSW: case TCSETSW:
return set_termios(real_tty, arg, TERMIOS_WAIT); return set_termios(real_tty, arg, TERMIOS_WAIT);
case TCSETS: case TCSETS:
...@@ -402,7 +402,7 @@ int n_tty_ioctl(struct tty_struct * tty, struct file * file, ...@@ -402,7 +402,7 @@ int n_tty_ioctl(struct tty_struct * tty, struct file * file,
case TCGETA: case TCGETA:
return get_termio(real_tty,(struct termio *) arg); return get_termio(real_tty,(struct termio *) arg);
case TCSETAF: 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: case TCSETAW:
return set_termios(real_tty, arg, TERMIOS_WAIT | TERMIOS_TERMIO); return set_termios(real_tty, arg, TERMIOS_WAIT | TERMIOS_TERMIO);
case TCSETA: case TCSETA:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment