Commit e9a22fbd authored by chenkan's avatar chenkan Committed by Facebook Github Bot 4

fix: readvNoInt use wrong read function

Summary: Closes https://github.com/facebook/folly/pull/401

Reviewed By: yfeldblum

Differential Revision: D3207682

Pulled By: snarkmaster

fb-gh-sync-id: 617aeec0e6fe1f46d2464df4b72a3e91c953dc12
fbshipit-source-id: 617aeec0e6fe1f46d2464df4b72a3e91c953dc12
parent 0ed00b64
......@@ -97,7 +97,7 @@ ssize_t preadNoInt(int fd, void* buf, size_t count, off_t offset) {
}
ssize_t readvNoInt(int fd, const iovec* iov, int count) {
return wrapNoInt(writev, fd, iov, count);
return wrapNoInt(readv, fd, iov, count);
}
ssize_t writeNoInt(int fd, const void* buf, size_t count) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment