diff options
author | agri <agri@yandex-team.ru> | 2022-02-10 16:48:12 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:48:12 +0300 |
commit | d3530b2692e400bd4d29bd4f07cafaee139164e7 (patch) | |
tree | b7ae636a74490e649a2ed0fdd5361f1bec83b9f9 /util/system/file.cpp | |
parent | 0f4c5d1e8c0672bf0a1f2f2d8acac5ba24772435 (diff) | |
download | ydb-d3530b2692e400bd4d29bd4f07cafaee139164e7.tar.gz |
Restoring authorship annotation for <agri@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/system/file.cpp')
-rw-r--r-- | util/system/file.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/util/system/file.cpp b/util/system/file.cpp index 4a261d020cb..ce62a3ccabf 100644 --- a/util/system/file.cpp +++ b/util/system/file.cpp @@ -599,12 +599,12 @@ int TFileHandle::Duplicate2Posix(int dstHandle) const noexcept { bool TFileHandle::LinkTo(const TFileHandle& fh) const noexcept { #if defined(_unix_) - while (dup2(fh.Fd_, Fd_) == -1) { - if (errno != EINTR) { - return false; - } - } - return true; + while (dup2(fh.Fd_, Fd_) == -1) { + if (errno != EINTR) { + return false; + } + } + return true; #elif defined(_win_) TFileHandle nh(fh.Duplicate()); |