]> git.ipfire.org Git - thirdparty/coreutils.git/commit
stty: support [-]drain setting to control waiting for pending Tx
authorPádraig Brady <P@draigBrady.com>
Wed, 6 Jan 2016 14:40:03 +0000 (14:40 +0000)
committerPádraig Brady <P@draigBrady.com>
Wed, 6 Jan 2016 15:20:49 +0000 (15:20 +0000)
commitcb7d8b90a213c0186a8c8ba66da959e1f5930e78
tree7c71619d355e0e4b57d59aec837924d840b85f13
parent5171befcb122b12677f60715603be091625a9e08
stty: support [-]drain setting to control waiting for pending Tx

Instead of commit v8.24-132-g5171bef which only provides
control to disable this behavior (with -I), provide
the symmetrical "[-]drain" special setting.

* src/stty.c (main): Parse the [-]drain setting instead of -I,
and treat like a global option.
(usage): Adjust accordingly.
* tests/misc/stty.sh: Test "drain" with and without options.
* NEWS: Mention the new feature.
NEWS
doc/coreutils.texi
src/stty.c
tests/misc/stty.sh