You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by be...@apache.org on 2012/05/23 00:12:47 UTC

svn commit: r1341664 - /incubator/mesos/trunk/third_party/libprocess/src/config.hpp

Author: benh
Date: Tue May 22 22:12:47 2012
New Revision: 1341664

URL: http://svn.apache.org/viewvc?rev=1341664&view=rev
Log:
Fixing sendfile bug on Linux (https://reviews.apache.org/r/5129).

Modified:
    incubator/mesos/trunk/third_party/libprocess/src/config.hpp

Modified: incubator/mesos/trunk/third_party/libprocess/src/config.hpp
URL: http://svn.apache.org/viewvc/incubator/mesos/trunk/third_party/libprocess/src/config.hpp?rev=1341664&r1=1341663&r2=1341664&view=diff
==============================================================================
--- incubator/mesos/trunk/third_party/libprocess/src/config.hpp (original)
+++ incubator/mesos/trunk/third_party/libprocess/src/config.hpp Tue May 22 22:12:47 2012
@@ -41,7 +41,7 @@
 #include <sys/sendfile.h>
 #define sendfile(s, fd, offset, size) \
   ({ off_t _offset = offset; \
-    sendfile(s, fd, &_offset, size) == -1 ? -1 : offset - _offset; })
+    sendfile(s, fd, &_offset, size) == -1 ? -1 : _offset - offset; })
 #endif /* __linux__ */
 
 #endif /* CONFIG_HPP */