mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 09:04:59 +00: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
1 changed files with 2 additions and 2 deletions
|
@ -964,14 +964,14 @@ DispatchSignalResult Thread::dispatch_signal(u8 signal)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (signal == SIGCONT) {
|
if (signal == SIGCONT) {
|
||||||
dbgln("signal: SIGCONT resuming {}", *this);
|
dbgln_if(SIGNAL_DEBUG, "signal: SIGCONT resuming {}", *this);
|
||||||
} else {
|
} else {
|
||||||
if (tracer) {
|
if (tracer) {
|
||||||
// when a thread is traced, it should be stopped whenever it receives a signal
|
// when a thread is traced, it should be stopped whenever it receives a signal
|
||||||
// the tracer is notified of this by using waitpid()
|
// the tracer is notified of this by using waitpid()
|
||||||
// only "pending signals" from the tracer are sent to the tracee
|
// only "pending signals" from the tracer are sent to the tracee
|
||||||
if (!tracer->has_pending_signal(signal)) {
|
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);
|
set_state(Thread::State::Stopped, signal);
|
||||||
return DispatchSignalResult::Yield;
|
return DispatchSignalResult::Yield;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue