| 67 | } |
| 68 | |
| 69 | void TPipeOutput::DoWrite(const void* buf, size_t len) { |
| 70 | if (Impl_->Pipe_ == nullptr || len != ::fwrite(buf, 1, len, Impl_->Pipe_)) { |
| 71 | ythrow TSystemError() << "fwrite failed"; |
| 72 | } |
| 73 | } |
| 74 | |
| 75 | void TPipeOutput::Close() { |
| 76 | int exitStatus = ::pclose(Impl_->Pipe_); |