kernel+libc: Add the SIGTTIN and SIGTTOU signals

This commit is contained in:
apio 2023-07-12 13:45:36 +02:00
parent b64093dee5
commit 71ff763dd9
Signed by: apio
GPG Key ID: B8A7D06E42258954
3 changed files with 7 additions and 0 deletions

View File

@ -110,6 +110,7 @@ enum class DefaultSignalAction
Terminate,
};
// FIXME: Implement coredumps for some signals.
static constexpr DefaultSignalAction default_actions[] = {
DefaultSignalAction::Terminate, // SIGHUP
DefaultSignalAction::Terminate, // SIGINT
@ -126,6 +127,8 @@ static constexpr DefaultSignalAction default_actions[] = {
DefaultSignalAction::Terminate, // SIGPIPE
DefaultSignalAction::Terminate, // SIGALRM
DefaultSignalAction::Terminate, // SIGTERM
DefaultSignalAction::Terminate, // SIGTTIN
DefaultSignalAction::Terminate, // SIGTTOU
};
void Thread::process_pending_signals(Registers* current_regs)

View File

@ -49,6 +49,8 @@ enum __signals
SIGPIPE = 13,
SIGALRM = 14,
SIGTERM = 15,
SIGTTIN = 16,
SIGTTOU = 17,
// FIXME: Add the remaining signals.
__NSIG,
};

View File

@ -33,6 +33,8 @@ extern "C"
case SIGPIPE: return "Broken pipe";
case SIGALRM: return "Alarm signal";
case SIGTERM: return "Terminated";
case SIGTTIN: return "Background process stopped (terminal input)";
case SIGTTOU: return "Background process stopped (terminal output)";
default: return "Unknown signal";
}
}