MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / ShutdownNotify

Function ShutdownNotify

src/init.cpp:277–286  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

275
276#if HAVE_SYSTEM
277static void ShutdownNotify(const ArgsManager& args)
278{
279 std::vector<std::thread> threads;
280 for (const auto& cmd : args.GetArgs("-shutdownnotify")) {
281 threads.emplace_back(runCommand, cmd);
282 }
283 for (auto& t : threads) {
284 t.join();
285 }
286}
287#endif
288
289void Interrupt(NodeContext& node)

Callers 1

InterruptFunction · 0.85

Calls 3

GetArgsMethod · 0.80
joinMethod · 0.80
emplace_backMethod · 0.45

Tested by

no test coverage detected