MCPcopy Create free account
hub / github.com/awslabs/aws-lambda-cpp / make_default_signals

Method make_default_signals

src/backward.h:4198–4218  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4196class SignalHandling {
4197public:
4198 static std::vector<int> make_default_signals()
4199 {
4200 const int posix_signals[] = {
4201 // Signals for which the default action is "Core".
4202 SIGABRT, // Abort signal from abort(3)
4203 SIGBUS, // Bus error (bad memory access)
4204 SIGFPE, // Floating point exception
4205 SIGILL, // Illegal Instruction
4206 SIGIOT, // IOT trap. A synonym for SIGABRT
4207 SIGQUIT, // Quit from keyboard
4208 SIGSEGV, // Invalid memory reference
4209 SIGSYS, // Bad argument to routine (SVr4)
4210 SIGTRAP, // Trace/breakpoint trap
4211 SIGXCPU, // CPU time limit exceeded (4.2BSD)
4212 SIGXFSZ, // File size limit exceeded (4.2BSD)
4213# if defined(BACKWARD_SYSTEM_DARWIN)
4214 SIGEMT, // emulation instruction executed
4215# endif
4216 };
4217 return std::vector<int>(posix_signals, posix_signals + sizeof posix_signals / sizeof posix_signals[0]);
4218 }
4219
4220 SignalHandling(const std::vector<int>& posix_signals = make_default_signals()) : _loaded(false)
4221 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected