MCPcopy Create free account
hub / github.com/apache/impala / IsSignalHandlerRegistered

Function IsSignalHandlerRegistered

be/src/kudu/util/debug-util-test.cc:90–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88void fake_signal_handler(int signum) {}
89
90bool IsSignalHandlerRegistered(int signum) {
91 struct sigaction cur_action;
92 CHECK_EQ(0, sigaction(signum, nullptr, &cur_action));
93 return cur_action.sa_handler != SIG_DFL;
94}
95} // anonymous namespace
96
97TEST_F(DebugUtilTest, TestStackTraceInvalidTid) {

Callers 1

TEST_FFunction · 0.85

Calls 1

sigactionClass · 0.70

Tested by

no test coverage detected