Merge "Add O_APPEND flag for __libc_write_stderr."

This commit is contained in:
Yabin Cui 2015-03-25 20:17:34 +00:00 committed by Gerrit Code Review
commit 0c3b632bd6

View File

@ -427,7 +427,7 @@ int __libc_format_fd(int fd, const char* format, ...) {
}
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;
}