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

Method startSpawnedProcess

src/ipc/interfaces.cpp:72–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70 return init;
71 }
72 bool startSpawnedProcess(int argc, char* argv[], int& exit_status) override
73 {
74 exit_status = EXIT_FAILURE;
75 int32_t fd = -1;
76 if (!m_process->checkSpawned(argc, argv, fd)) {
77 return false;
78 }
79 IgnoreCtrlC(strprintf("[%s] SIGINT received — waiting for parent to shut down.\n", m_exe_name));
80 m_protocol->serve(fd, m_exe_name, m_init);
81 exit_status = EXIT_SUCCESS;
82 return true;
83 }
84 std::unique_ptr<interfaces::Init> connectAddress(std::string& address) override
85 {
86 if (address.empty() || address == "0") return nullptr;

Callers 1

MakeNodeInitFunction · 0.80

Calls 3

IgnoreCtrlCFunction · 0.85
checkSpawnedMethod · 0.80
serveMethod · 0.80

Tested by

no test coverage detected