commit | 0c3b632bd6570064bab1055d2b8a51cfb85e60bb | [log] [tgz] |
---|---|---|
author | Yabin Cui <yabinc@google.com> | Wed Mar 25 20:17:34 2015 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Wed Mar 25 20:17:34 2015 +0000 |
tree | a152db94f166379d6691f67b09ff142e768e7ebe | |
parent | f6364486fb0fcd2891094a871041a3dc6c2334f8 [diff] | |
parent | 28e69f75088684b41d30b051799d7687d33f2205 [diff] |
Merge "Add O_APPEND flag for __libc_write_stderr."
diff --git a/libc/bionic/libc_logging.cpp b/libc/bionic/libc_logging.cpp index 2eb9d68..7ad21c4 100644 --- a/libc/bionic/libc_logging.cpp +++ b/libc/bionic/libc_logging.cpp
@@ -427,7 +427,7 @@ } static int __libc_write_stderr(const char* tag, const char* msg) { - int fd = TEMP_FAILURE_RETRY(open("/dev/stderr", O_CLOEXEC | O_WRONLY)); + int fd = TEMP_FAILURE_RETRY(open("/dev/stderr", O_CLOEXEC | O_WRONLY | O_APPEND)); if (fd == -1) { return -1; }