MCPcopy Create free account
hub / github.com/boostorg/stacktrace / my_signal_handler

Function my_signal_handler

example/terminate_handler.cpp:31–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29#include <boost/stacktrace.hpp>
30
31void my_signal_handler(int signum) {
32 ::signal(signum, SIG_DFL);
33
34 // Outputs nothing or trash on majority of platforms
35 boost::stacktrace::safe_dump_to("./backtrace.dump");
36
37 ::raise(SIGABRT);
38}
39//]
40
41void setup_handlers() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected