Patch "ktest.pl: Give back console on Ctrt^C on monitor" has been added to the 5.15-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    ktest.pl: Give back console on Ctrt^C on monitor

to the 5.15-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     ktest.pl-give-back-console-on-ctrt-c-on-monitor.patch
and it can be found in the queue-5.15 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.


>From 83d29d439cd3ef23041570d55841f814af2ecac0 Mon Sep 17 00:00:00 2001
From: Steven Rostedt <rostedt@xxxxxxxxxxx>
Date: Wed, 18 Jan 2023 16:32:13 -0500
Subject: ktest.pl: Give back console on Ctrt^C on monitor

From: Steven Rostedt <rostedt@xxxxxxxxxxx>

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@xxxxxxxxxxxxxxx
Fixes: 9f2cdcbbb90e7 ("ktest: Give console process a dedicated tty")
Signed-off-by: Steven Rostedt <rostedt@xxxxxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
---
 tools/testing/ktest/ktest.pl |    3 +++
 1 file changed, 3 insertions(+)

--- a/tools/testing/ktest/ktest.pl
+++ b/tools/testing/ktest/ktest.pl
@@ -4193,6 +4193,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",


Patches currently in stable-queue which might be from rostedt@xxxxxxxxxxx are

queue-5.15/sched-rt-pick_next_rt_entity-check-list_entry.patch
queue-5.15/rcu-make-rcu_lockdep_warn-avoid-early-lockdep-checks.patch
queue-5.15/trace-blktrace-fix-memory-leak-with-using-debugfs_lo.patch
queue-5.15/acpi-don-t-build-acpica-with-os.patch
queue-5.15/selftests-ftrace-fix-bash-specific-operator.patch
queue-5.15/ktest.pl-fix-missing-end_monitor-when-machine-check-fails.patch
queue-5.15/ktest.pl-add-run_timeout-option-with-default-unlimited.patch
queue-5.15/ktest.pl-give-back-console-on-ctrt-c-on-monitor.patch
queue-5.15/ring-buffer-handle-race-between-rb_move_tail-and-rb_check_pages.patch



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux