From b0db5510b4059e97df99a4126b0497115b86f75c Mon Sep 17 00:00:00 2001 From: Buke Po Date: Wed, 14 Jun 2017 01:10:37 +0800 Subject: [PATCH] restore stdout when restoring posix uart (#1901) --- examples/platforms/posix/uart-posix.c | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/platforms/posix/uart-posix.c b/examples/platforms/posix/uart-posix.c index 14a9f43d0..57225f76b 100644 --- a/examples/platforms/posix/uart-posix.c +++ b/examples/platforms/posix/uart-posix.c @@ -73,6 +73,7 @@ void platformUartRestore(void) { restore_stdin_termios(); restore_stdout_termios(); + dup2(s_out_fd, STDOUT_FILENO); } otError otPlatUartEnable(void)