MCPcopy Create free account
hub / github.com/awawa-dev/HyperHDR / install_default_handler

Function install_default_handler

sources/utils/DefaultSignalHandler.cpp:106–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104 }
105
106 void install_default_handler(int signum)
107 {
108 struct sigaction action {};
109 sigemptyset(&action.sa_mask);
110 action.sa_handler = SIG_DFL;
111 (void)sigaction(signum, &action, nullptr);
112 }
113
114 /* Note that this signal handler is not async signal safe !
115 * Ideally a signal handler should only flip a bit and defer

Callers 1

signal_handlerFunction · 0.85

Calls 1

sigactionClass · 0.85

Tested by

no test coverage detected