From: davej@codemonkey.org.uk
To: torvalds@transmeta.com
Cc: linux-kernel@vger.kernel.org
Subject: Fix standards compliance bugs in the tty layer
Date: Thu, 15 May 2003 04:31:04 +0100 [thread overview]
Message-ID: <200305150331.h4F3V4bF000568@deviant.impure.org.uk> (raw)
This went into 2.4 back last August with the comment in $subject.
diff -urpN --exclude-from=/home/davej/.exclude bk-linus/drivers/char/tty_ioctl.c linux-2.5/drivers/char/tty_ioctl.c
--- bk-linus/drivers/char/tty_ioctl.c 2003-04-24 03:50:37.000000000 +0100
+++ linux-2.5/drivers/char/tty_ioctl.c 2003-04-24 03:53:14.000000000 +0100
@@ -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:
reply other threads:[~2003-05-15 3:19 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200305150331.h4F3V4bF000568@deviant.impure.org.uk \
--to=davej@codemonkey.org.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@transmeta.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®