kernel+libc: Add the SIGTTIN and SIGTTOU signals
This commit is contained in:
parent
b64093dee5
commit
71ff763dd9
@ -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)
|
||||
|
@ -49,6 +49,8 @@ enum __signals
|
||||
SIGPIPE = 13,
|
||||
SIGALRM = 14,
|
||||
SIGTERM = 15,
|
||||
SIGTTIN = 16,
|
||||
SIGTTOU = 17,
|
||||
// FIXME: Add the remaining signals.
|
||||
__NSIG,
|
||||
};
|
||||
|
@ -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";
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user