Kernel: Silence TTY signal debug spam

This commit is contained in:
Andreas Kling 2021-02-21 10:52:02 +01:00
parent 5d2159ee24
commit 3b3e7d3f46
Notes: sideshowbarker 2024-07-18 22:04:07 +09:00

View file

@ -283,10 +283,10 @@ void TTY::generate_signal(int signal)
return;
if (should_flush_on_signal())
flush_input();
dbgln("{}: Send signal {} to everyone in pgrp {}", tty_name(), signal, pgid().value());
dbgln_if(TTY_DEBUG, "{}: Send signal {} to everyone in pgrp {}", tty_name(), signal, pgid().value());
InterruptDisabler disabler; // FIXME: Iterate over a set of process handles instead?
Process::for_each_in_pgrp(pgid(), [&](auto& process) {
dbgln("{}: Send signal {} to {}", tty_name(), signal, process);
dbgln_if(TTY_DEBUG, "{}: Send signal {} to {}", tty_name(), signal, process);
// FIXME: Should this error be propagated somehow?
[[maybe_unused]] auto rc = process.send_signal(signal, nullptr);
return IterationDecision::Continue;