pipes are closed by automatic dtor
| 236 | TRealPipeHandle InputPipeFd[2]; |
| 237 | // pipes are closed by automatic dtor |
| 238 | void PrepareParents() { |
| 239 | if (OutputPipeFd[1].IsOpen()) { |
| 240 | OutputPipeFd[1].Close(); |
| 241 | } |
| 242 | if (ErrorPipeFd[1].IsOpen()) { |
| 243 | ErrorPipeFd[1].Close(); |
| 244 | } |
| 245 | if (InputPipeFd[1].IsOpen()) { |
| 246 | InputPipeFd[0].Close(); |
| 247 | } |
| 248 | } |
| 249 | void ReleaseParents() { |
| 250 | InputPipeFd[1].Release(); |
| 251 | OutputPipeFd[0].Release(); |