2012-09-12 19:48:53 +04:00
|
|
|
--- coreutils-8.19/src/stty.c.tcsadrain~ 2012-07-21 16:54:31.000000000 +0200
|
|
|
|
+++ coreutils-8.19/src/stty.c 2012-08-21 05:46:40.352604844 +0200
|
2012-08-24 23:25:39 +11:00
|
|
|
@@ -1005,7 +1005,7 @@ main (int argc, char **argv)
|
2012-02-01 14:36:01 +04:00
|
|
|
spurious difference in an uninitialized portion of the structure. */
|
2012-09-12 19:48:53 +04:00
|
|
|
static struct termios new_mode;
|
2012-02-01 14:36:01 +04:00
|
|
|
|
|
|
|
- if (tcsetattr (STDIN_FILENO, TCSADRAIN, &mode))
|
|
|
|
+ if (tcsetattr (STDIN_FILENO, TCSANOW, &mode))
|
|
|
|
error (EXIT_FAILURE, errno, "%s", device_name);
|
|
|
|
|
|
|
|
/* POSIX (according to Zlotnick's book) tcsetattr returns zero if
|