kernel: Remove signal debug messages
This commit is contained in:
parent
8a57d8a9b7
commit
d1d53c6891
@ -106,9 +106,6 @@ bool Thread::deliver_signal(int signo, Registers* current_regs)
|
|||||||
|
|
||||||
memcpy(®s, current_regs, sizeof(regs));
|
memcpy(®s, current_regs, sizeof(regs));
|
||||||
|
|
||||||
kinfoln("signal: delivering signal %d for thread %d, ip=%p, sp=%p, handler=%p, sigreturn=%p", signo, id,
|
|
||||||
(void*)regs.rip, (void*)regs.rsp, (void*)handler.sa_handler, (void*)handler.__sa_sigreturn);
|
|
||||||
|
|
||||||
regs.rsp -= 128; // Skip the red zone
|
regs.rsp -= 128; // Skip the red zone
|
||||||
|
|
||||||
fp_data.save();
|
fp_data.save();
|
||||||
@ -165,7 +162,5 @@ void Thread::sigreturn(Registers* current_regs)
|
|||||||
|
|
||||||
fp_data.restore();
|
fp_data.restore();
|
||||||
|
|
||||||
kinfoln("sigreturn: restored program state, sp=%p, ip=%p", (void*)regs.rsp, (void*)regs.rip);
|
|
||||||
|
|
||||||
memcpy(current_regs, ®s, sizeof(regs));
|
memcpy(current_regs, ®s, sizeof(regs));
|
||||||
}
|
}
|
||||||
|
@ -171,13 +171,8 @@ void Thread::process_pending_signals(Registers* current_regs)
|
|||||||
if (pending_signals.get(i))
|
if (pending_signals.get(i))
|
||||||
{
|
{
|
||||||
pending_signals.set(i, false);
|
pending_signals.set(i, false);
|
||||||
kinfoln("signal: executing signal %d for thread %d", signo, id);
|
|
||||||
auto handler = signal_handlers[i];
|
auto handler = signal_handlers[i];
|
||||||
if (signo != SIGKILL && signo != SIGSTOP && handler.sa_handler == SIG_IGN)
|
if (signo != SIGKILL && signo != SIGSTOP && handler.sa_handler == SIG_IGN) return;
|
||||||
{
|
|
||||||
kinfoln("signal: ignoring signal (handler=SIG_IGN)");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (handler.sa_handler == SIG_DFL || signo == SIGKILL || signo == SIGSTOP)
|
if (handler.sa_handler == SIG_DFL || signo == SIGKILL || signo == SIGSTOP)
|
||||||
{
|
{
|
||||||
default_signal:
|
default_signal:
|
||||||
@ -187,8 +182,6 @@ void Thread::process_pending_signals(Registers* current_regs)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
kinfoln("signal: using default behavior (handler=SIG_DFL)");
|
|
||||||
|
|
||||||
auto action = default_actions[i];
|
auto action = default_actions[i];
|
||||||
switch (action)
|
switch (action)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user