aboutsummaryrefslogtreecommitdiffstats
path: root/util/stream/output.cpp
diff options
context:
space:
mode:
authoraosipenko <aosipenko@yandex-team.ru>2022-02-10 16:48:08 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:48:08 +0300
commit948fd24d47d4b3b7815aaef1686aea00ef3f4288 (patch)
tree8ad4c39c2a5f8b341bc02e3b0c5e8f26c40373cb /util/stream/output.cpp
parentd2eb4aae699fa2f6901bf32d22eec019c8f29838 (diff)
downloadydb-948fd24d47d4b3b7815aaef1686aea00ef3f4288.tar.gz
Restoring authorship annotation for <aosipenko@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/stream/output.cpp')
-rw-r--r--util/stream/output.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/util/stream/output.cpp b/util/stream/output.cpp
index db81b81b70..73f0e97e71 100644
--- a/util/stream/output.cpp
+++ b/util/stream/output.cpp
@@ -352,11 +352,11 @@ namespace {
void DoWrite(const void* buf, size_t len) override {
if (len != fwrite(buf, 1, len, F_)) {
#if defined(_win_)
- // On Windows, if 'F_' is console -- 'fwrite' returns count of written characters.
- // If, for example, console output codepage is UTF-8, then returned value is
- // not equal to 'len'. So, we ignore some 'errno' values...
+ // On Windows, if 'F_' is console -- 'fwrite' returns count of written characters.
+ // If, for example, console output codepage is UTF-8, then returned value is
+ // not equal to 'len'. So, we ignore some 'errno' values...
if ((errno == 0 || errno == EINVAL || errno == EILSEQ) && _isatty(fileno(F_))) {
- return;
+ return;
}
#endif
ythrow TSystemError() << "write failed";