Do we need this check?  Or can it be a `CHECK`?  Because we  already have `CHECK(pipe_fd_ != -1)` above.