mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
ktest.pl: Give back console on Ctrt^C on monitor
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: 9f2cdcbbb9
("ktest: Give console process a dedicated tty")
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
This commit is contained in:
parent
e8bf9b98d4
commit
83d29d439c
1 changed files with 3 additions and 0 deletions
|
@ -4201,6 +4201,9 @@ sub send_email {
|
|||
}
|
||||
|
||||
sub cancel_test {
|
||||
if ($monitor_cnt) {
|
||||
end_monitor;
|
||||
}
|
||||
if ($email_when_canceled) {
|
||||
my $name = get_test_name;
|
||||
send_email("KTEST: Your [$name] test was cancelled",
|
||||
|
|
Loading…
Add table
Reference in a new issue