aboutsummaryrefslogtreecommitdiffstats
path: root/util/system/file.cpp
diff options
context:
space:
mode:
authoragri <agri@yandex-team.ru>2022-02-10 16:48:12 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:48:12 +0300
commitd3530b2692e400bd4d29bd4f07cafaee139164e7 (patch)
treeb7ae636a74490e649a2ed0fdd5361f1bec83b9f9 /util/system/file.cpp
parent0f4c5d1e8c0672bf0a1f2f2d8acac5ba24772435 (diff)
downloadydb-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.cpp12
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());