diff options
author | Vlad Yaroslavlev <vladon@vladon.com> | 2022-02-10 16:46:23 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:23 +0300 |
commit | 706b83ed7de5a473436620367af31fc0ceecde07 (patch) | |
tree | 103305d30dec77e8f6367753367f59b3cd68f9f1 /util/stream/pipe.cpp | |
parent | 918e8a1574070d0ec733f0b76cfad8f8892ad2e5 (diff) | |
download | ydb-706b83ed7de5a473436620367af31fc0ceecde07.tar.gz |
Restoring authorship annotation for Vlad Yaroslavlev <vladon@vladon.com>. Commit 1 of 2.
Diffstat (limited to 'util/stream/pipe.cpp')
-rw-r--r-- | util/stream/pipe.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/util/stream/pipe.cpp b/util/stream/pipe.cpp index 51be1934a7..0fc2d721f4 100644 --- a/util/stream/pipe.cpp +++ b/util/stream/pipe.cpp @@ -7,7 +7,7 @@ class TPipeBase::TImpl { public: - inline TImpl(const TString& command, const char* mode) + inline TImpl(const TString& command, const char* mode) : Pipe_(nullptr) { #ifndef _freebsd_ @@ -21,7 +21,7 @@ public: } } - inline ~TImpl() { + inline ~TImpl() { if (Pipe_ != nullptr) { ::pclose(Pipe_); } @@ -31,14 +31,14 @@ public: FILE* Pipe_; }; -TPipeBase::TPipeBase(const TString& command, const char* mode) +TPipeBase::TPipeBase(const TString& command, const char* mode) : Impl_(new TImpl(command, mode)) { } TPipeBase::~TPipeBase() = default; -TPipeInput::TPipeInput(const TString& command) +TPipeInput::TPipeInput(const TString& command) : TPipeBase(command, "r") { } @@ -61,7 +61,7 @@ size_t TPipeInput::DoRead(void* buf, size_t len) { return bytesRead; } -TPipeOutput::TPipeOutput(const TString& command) +TPipeOutput::TPipeOutput(const TString& command) : TPipeBase(command, "w") { } @@ -87,7 +87,7 @@ TPipedBase::TPipedBase(PIPEHANDLE fd) { } -TPipedBase::~TPipedBase() { +TPipedBase::~TPipedBase() { if (Handle_.IsOpen()) { Handle_.Close(); } |