commit | ec0fe5b84e0bdb94bb381a2b50092b24497c2091 | [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 | 43fef8d4feeecf6356646317f725a0e211da0c1c [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>