| 1339 | void ParentAfterFork() {} |
| 1340 | |
| 1341 | void ChildAfterFork() { |
| 1342 | // Close and recreate pipe, to avoid interfering with parent. |
| 1343 | const bool was_closed = pipe_.rfd.closed() || pipe_.wfd.closed(); |
| 1344 | ARROW_CHECK_OK(pipe_.Close()); |
| 1345 | if (!was_closed) { |
| 1346 | ARROW_CHECK_OK(CreatePipe().Value(&pipe_)); |
| 1347 | } |
| 1348 | } |
| 1349 | |
| 1350 | Status ClosedPipe() const { return Status::Invalid("Self-pipe closed"); } |
| 1351 |
no test coverage detected