MCPcopy Create free account
hub / github.com/Bitcoin-ABC/bitcoin-abc / registerSignalHandler

Function registerSignalHandler

src/init.cpp:411–417  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

409
410#ifndef WIN32
411static void registerSignalHandler(int signal, void (*handler)(int)) {
412 struct sigaction sa;
413 sa.sa_handler = handler;
414 sigemptyset(&sa.sa_mask);
415 sa.sa_flags = 0;
416 sigaction(signal, &sa, NULL);
417}
418#endif
419
420static boost::signals2::connection rpc_notify_block_change_connection;

Callers 1

AppInitBasicSetupFunction · 0.85

Calls 1

sigactionClass · 0.85

Tested by

no test coverage detected