MCPcopy Create free account
hub / github.com/ElementsProject/elements / startSpawnedProcess

Method startSpawnedProcess

src/ipc/interfaces.cpp:48–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46 return init;
47 }
48 bool startSpawnedProcess(int argc, char* argv[], int& exit_status) override
49 {
50 exit_status = EXIT_FAILURE;
51 int32_t fd = -1;
52 if (!m_process->checkSpawned(argc, argv, fd)) {
53 return false;
54 }
55 m_protocol->serve(fd, m_exe_name, m_init);
56 exit_status = EXIT_SUCCESS;
57 return true;
58 }
59 void addCleanup(std::type_index type, void* iface, std::function<void()> cleanup) override
60 {
61 m_protocol->addCleanup(type, iface, std::move(cleanup));

Callers 1

MakeNodeInitFunction · 0.80

Calls 2

checkSpawnedMethod · 0.80
serveMethod · 0.80

Tested by

no test coverage detected