Skip to content

Commit 83d29d4

Browse files
committed
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: [email protected] Fixes: 9f2cdcb ("ktest: Give console process a dedicated tty") Signed-off-by: Steven Rostedt <[email protected]>
1 parent e8bf9b9 commit 83d29d4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tools/testing/ktest/ktest.pl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4201,6 +4201,9 @@ sub send_email {
42014201
}
42024202

42034203
sub cancel_test {
4204+
if ($monitor_cnt) {
4205+
end_monitor;
4206+
}
42044207
if ($email_when_canceled) {
42054208
my $name = get_test_name;
42064209
send_email("KTEST: Your [$name] test was cancelled",

0 commit comments

Comments
 (0)