]> git.ipfire.org Git - thirdparty/coreutils.git/commit
stty: support -I, --immediate to not wait for pending transmission
authorPádraig Brady <P@draigBrady.com>
Mon, 4 Jan 2016 12:13:40 +0000 (12:13 +0000)
committerPádraig Brady <P@draigBrady.com>
Mon, 4 Jan 2016 23:45:19 +0000 (23:45 +0000)
commit5171befcb122b12677f60715603be091625a9e08
tree6f1dd7bdfb491ea7037204227804a2ed6c1f3df3
parentc6be0b39437890876692606c233b47a1751b40e9
stty: support -I, --immediate to not wait for pending transmission

In some cases an initial drain may block indefinitely as discussed at:
http://lists.gnu.org/archive/html/coreutils/2016-01/msg00007.html

* src/stty.c (main): Use TCSANOW rather than TCSADRAIN if -I specified.
(usage): Document the new option.
* doc/coreutils.texi (stty invocation): Likewise.
* tests/misc/stty.sh: Ensure -I is supported.
* NEWS: Mention the new feature.
NEWS
doc/coreutils.texi
src/stty.c
tests/misc/stty.sh