MCPcopy Create free account
hub / github.com/arun11299/cpp-subprocess / Child

Class Child

cpp-subprocess/subprocess.hpp:1163–1178  ·  view source on GitHub ↗

! * A helper class to Popen. * This takes care of all the fork-exec logic * in the execute_child API. */

Source from the content-addressed store, hash-verified

1161 * in the execute_child API.
1162 */
1163class Child
1164{
1165public:
1166 Child(Popen* p, int err_wr_pipe):
1167 parent_(p),
1168 err_wr_pipe_(err_wr_pipe)
1169 {}
1170
1171 void execute_child();
1172
1173private:
1174 // Lets call it parent even though
1175 // technically a bit incorrect
1176 Popen* parent_ = nullptr;
1177 int err_wr_pipe_ = -1;
1178};
1179
1180// Fwd Decl.
1181class Streams;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected