mirror of
https://github.com/QuasarApp/backward-cpp.git
synced 2025-04-29 03:44:31 +00:00
parent
8a576051ba
commit
5557e53f23
41
backward.hpp
41
backward.hpp
@ -1869,33 +1869,20 @@ class SignalHandling {
|
|||||||
public:
|
public:
|
||||||
static std::vector<int> make_default_signals() {
|
static std::vector<int> make_default_signals() {
|
||||||
const int posix_signals[] = {
|
const int posix_signals[] = {
|
||||||
// default action: Core
|
// Signals for which the default action is "Core".
|
||||||
SIGILL,
|
SIGABRT, // Abort signal from abort(3)
|
||||||
SIGABRT,
|
SIGBUS, // Bus error (bad memory access)
|
||||||
SIGFPE,
|
SIGFPE, // Floating point exception
|
||||||
SIGSEGV,
|
SIGILL, // Illegal Instruction
|
||||||
SIGBUS,
|
SIGIOT, // IOT trap. A synonym for SIGABRT
|
||||||
// I am not sure the following signals should be enabled by
|
SIGQUIT, // Quit from keyboard
|
||||||
// default:
|
SIGSEGV, // Invalid memory reference
|
||||||
// default action: Term
|
SIGSYS, // Bad argument to routine (SVr4)
|
||||||
SIGHUP,
|
SIGTRAP, // Trace/breakpoint trap
|
||||||
SIGINT,
|
SIGUNUSED, // Synonymous with SIGSYS
|
||||||
SIGPIPE,
|
SIGXCPU, // CPU time limit exceeded (4.2BSD)
|
||||||
SIGALRM,
|
SIGXFSZ, // File size limit exceeded (4.2BSD)
|
||||||
SIGTERM,
|
|
||||||
SIGUSR1,
|
|
||||||
SIGUSR2,
|
|
||||||
SIGPOLL,
|
|
||||||
SIGPROF,
|
|
||||||
SIGVTALRM,
|
|
||||||
SIGIO,
|
|
||||||
SIGPWR,
|
|
||||||
// default action: Core
|
|
||||||
SIGQUIT,
|
|
||||||
SIGSYS,
|
|
||||||
SIGTRAP,
|
|
||||||
SIGXCPU,
|
|
||||||
SIGXFSZ
|
|
||||||
};
|
};
|
||||||
return std::vector<int>(posix_signals, posix_signals + sizeof posix_signals / sizeof posix_signals[0] );
|
return std::vector<int>(posix_signals, posix_signals + sizeof posix_signals / sizeof posix_signals[0] );
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user