This is an automated email from the ASF dual-hosted git repository.

jking pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/thrift.git


The following commit(s) were added to refs/heads/master by this push:
     new 1a2dee6  Use THRIFT_WRITE instead of ::write in TFileTransport.cpp
1a2dee6 is described below

commit 1a2dee60b4384de2f6190caa85cf3e2a497c31b9
Author: Shaoyu Zhang <[email protected]>
AuthorDate: Sat Mar 23 13:47:15 2019 +0800

    Use THRIFT_WRITE instead of ::write in TFileTransport.cpp
---
 lib/cpp/src/thrift/transport/TFileTransport.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/cpp/src/thrift/transport/TFileTransport.cpp 
b/lib/cpp/src/thrift/transport/TFileTransport.cpp
index 53e5136..eaf2bc3 100644
--- a/lib/cpp/src/thrift/transport/TFileTransport.cpp
+++ b/lib/cpp/src/thrift/transport/TFileTransport.cpp
@@ -427,7 +427,7 @@ void TFileTransport::writerThread() {
             auto* zeros = new uint8_t[padding];
             memset(zeros, '\0', padding);
             boost::scoped_array<uint8_t> array(zeros);
-            if (-1 == ::write(fd_, zeros, padding)) {
+            if (-1 == ::THRIFT_WRITE(fd_, zeros, padding)) {
               int errno_copy = THRIFT_ERRNO;
               GlobalOutput.perror("TFileTransport: writerThread() error while 
padding zeros ",
                                   errno_copy);

Reply via email to