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,
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, struct file * file,
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:
......
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