MCPcopy Create free account
hub / github.com/apache/arrow / ChildAfterFork

Method ChildAfterFork

cpp/src/arrow/util/io_util.cc:1341–1348  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

InitMethod · 0.95

Calls 4

CreatePipeFunction · 0.85
closedMethod · 0.45
CloseMethod · 0.45
ValueMethod · 0.45

Tested by

no test coverage detected