commit | eafc969e993cb878d495c84bc577b7e7d62cecee | [log] [tgz] |
---|---|---|
author | Pali Rohár <pali@kernel.org> | Fri Jul 23 11:14:18 2021 +0200 |
committer | Stefan Roese <sr@denx.de> | Sat Jul 31 09:49:31 2021 +0200 |
tree | 3e93465ec1454e2b0247dcaff3a3265c47b01775 | |
parent | 8210ea0288d75758cf4fb2cd6fe91379a47615ad [diff] |
tools: kwboot: Fix restoring terminal Call tcsetattr() only if the file descriptor is valid. It may be invalidated by previous lines (if it is not a tty descriptor). Signed-off-by: Pali Rohár <pali@kernel.org> Reviewed-by: Marek Behún <marek.behun@nic.cz> Reviewed-by: Stefan Roese <sr@denx.de> Reviewed-by: Chris Packham <judge.packham@gmail.com> Tested-by: Chris Packham <judge.packham@gmail.com>