aboutsummaryrefslogtreecommitdiffstats
path: root/util/system/file.cpp
diff options
context:
space:
mode:
authornalpp <nalpp@yandex-team.ru>2022-02-10 16:46:46 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:46 +0300
commit30d1ef3941e0dc835be7609de5ebee66958f215a (patch)
tree49e222ea1c5804306084bb3ae065bb702625360f /util/system/file.cpp
parent87f3eb38999df2d3c1cb77f8ffb9c52ec9c516fb (diff)
downloadydb-30d1ef3941e0dc835be7609de5ebee66958f215a.tar.gz
Restoring authorship annotation for <nalpp@yandex-team.ru>. Commit 2 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 941a652d63..4a261d020c 100644
--- a/util/system/file.cpp
+++ b/util/system/file.cpp
@@ -111,8 +111,8 @@ TFileHandle::TFileHandle(const TString& fName, EOpenMode oMode) noexcept {
faMode &= ~FILE_WRITE_DATA;
}
- bool inheritHandle = !(oMode & CloseOnExec);
-
+ bool inheritHandle = !(oMode & CloseOnExec);
+
ui32 shMode = FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE;
ui32 attrMode = FILE_ATTRIBUTE_NORMAL;
@@ -175,10 +175,10 @@ TFileHandle::TFileHandle(const TString& fName, EOpenMode oMode) noexcept {
fcMode |= O_APPEND;
}
- if (oMode & CloseOnExec) {
- fcMode |= O_CLOEXEC;
- }
-
+ if (oMode & CloseOnExec) {
+ fcMode |= O_CLOEXEC;
+ }
+
/* I don't now about this for unix...
if (oMode & Temp) {
}