]> git.baikalelectronics.ru Git - kernel.git/commit
ktest.pl: Give back console on Ctrt^C on monitor
authorSteven Rostedt <rostedt@goodmis.org>
Wed, 18 Jan 2023 21:32:13 +0000 (16:32 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 11 Mar 2023 15:44:05 +0000 (16:44 +0100)
commit0d91f5c497d629e65fb71596c4fdfb138a5ac183
treefa1e0c8d4a3738d155e67c322b233cbb5bba1bf5
parent2ba73643281a10c1963d9544a346bb1e58987916
ktest.pl: Give back console on Ctrt^C on monitor

commit 83d29d439cd3ef23041570d55841f814af2ecac0 upstream.

When monitoring the console output, the stdout is being redirected to do
so. If Ctrl^C is hit during this mode, the stdout is not back to the
console, the user does not see anything they type (no echo).

Add "end_monitor" to the SIGINT interrupt handler to give back the console
on Ctrl^C.

Cc: stable@vger.kernel.org
Fixes: a61f9ef369d75 ("ktest: Give console process a dedicated tty")
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tools/testing/ktest/ktest.pl