! * A helper class to Popen. * This takes care of all the fork-exec logic * in the execute_child API. */
| 1161 | * in the execute_child API. |
| 1162 | */ |
| 1163 | class Child |
| 1164 | { |
| 1165 | public: |
| 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 | |
| 1173 | private: |
| 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. |
| 1181 | class Streams; |
nothing calls this directly
no outgoing calls
no test coverage detected