aboutsummaryrefslogtreecommitdiffstats
path: root/util/stream
diff options
context:
space:
mode:
authormarakasov <marakasov@yandex-team.ru>2022-02-10 16:49:50 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:50 +0300
commit359de4829c1d82b06fad5e0ad82470e4e9f27c89 (patch)
treea58ba6d37e60106215ea04536f6f33d3e2fe4f6f /util/stream
parentd94c2eed82b3c1259ac7320eb28e9731cd990c22 (diff)
downloadydb-359de4829c1d82b06fad5e0ad82470e4e9f27c89.tar.gz
Restoring authorship annotation for <marakasov@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/stream')
-rw-r--r--util/stream/pipe.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/util/stream/pipe.cpp b/util/stream/pipe.cpp
index 51be1934a7..b209eb9d6e 100644
--- a/util/stream/pipe.cpp
+++ b/util/stream/pipe.cpp
@@ -72,16 +72,16 @@ void TPipeOutput::DoWrite(const void* buf, size_t len) {
}
}
-void TPipeOutput::Close() {
- int exitStatus = ::pclose(Impl_->Pipe_);
+void TPipeOutput::Close() {
+ int exitStatus = ::pclose(Impl_->Pipe_);
Impl_->Pipe_ = nullptr;
- if (exitStatus == -1) {
- ythrow TSystemError() << "pclose() failed";
- } else if (exitStatus != 0) {
- ythrow yexception() << "subprocess exited with non-zero status(" << exitStatus << ")";
- }
-}
-
+ if (exitStatus == -1) {
+ ythrow TSystemError() << "pclose() failed";
+ } else if (exitStatus != 0) {
+ ythrow yexception() << "subprocess exited with non-zero status(" << exitStatus << ")";
+ }
+}
+
TPipedBase::TPipedBase(PIPEHANDLE fd)
: Handle_(fd)
{