mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-27 05:05:32 +03:00
Kernel: Switch a couple of signal dispatch dbglns to dbgln_if
These are pretty spammy when using strace.
This commit is contained in:
parent
06c176bbfb
commit
209c588ed1
Notes:
sideshowbarker
2024-07-16 22:17:03 +09:00
Author: https://github.com/IdanHo Commit: https://github.com/SerenityOS/serenity/commit/209c588ed1 Pull-request: https://github.com/SerenityOS/serenity/pull/23421
@ -964,14 +964,14 @@ DispatchSignalResult Thread::dispatch_signal(u8 signal)
|
||||
}
|
||||
|
||||
if (signal == SIGCONT) {
|
||||
dbgln("signal: SIGCONT resuming {}", *this);
|
||||
dbgln_if(SIGNAL_DEBUG, "signal: SIGCONT resuming {}", *this);
|
||||
} else {
|
||||
if (tracer) {
|
||||
// when a thread is traced, it should be stopped whenever it receives a signal
|
||||
// the tracer is notified of this by using waitpid()
|
||||
// only "pending signals" from the tracer are sent to the tracee
|
||||
if (!tracer->has_pending_signal(signal)) {
|
||||
dbgln("signal: {} stopping {} for tracer", signal, *this);
|
||||
dbgln_if(SIGNAL_DEBUG, "signal: {} stopping {} for tracer", signal, *this);
|
||||
set_state(Thread::State::Stopped, signal);
|
||||
return DispatchSignalResult::Yield;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user