Re: [PATCH u-boot-mvebu 12/31] tools: kwboot: Fix restoring terminal

2021-07-15 Thread Stefan Roese
On 08.07.21 19:30, Marek Behún wrote: From: Pali Rohár 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 Reviewed-by: Marek Behún Reviewed-by: Stefan Roese Thanks, Stefan --- tools

[PATCH u-boot-mvebu 12/31] tools: kwboot: Fix restoring terminal

2021-07-08 Thread Marek Behún
From: Pali Rohár 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 Reviewed-by: Marek Behún --- tools/kwboot.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/kw