diff options
author | Michael Neumann <mneumann@ntecs.de> | 2015-06-18 17:05:55 +0200 |
---|---|---|
committer | Saúl Ibarra Corretgé <saghul@gmail.com> | 2015-09-01 09:22:43 +0200 |
commit | 8b90faff6c55cc4bfbc19f0aec655b89fa7283be (patch) | |
tree | 67c82a7e5669180535a9b6a8a9fbd741405dbd51 /docs/src | |
parent | d58e94408fb433fc8138131a9732e6c48510a5be (diff) | |
download | libuv-8b90faff6c55cc4bfbc19f0aec655b89fa7283be.tar.gz libuv-8b90faff6c55cc4bfbc19f0aec655b89fa7283be.zip |
fs: fix bug in sendfile for DragonFly
The code made an implicit assumption that the 'len` variable passed
to the sendfile(2) syscall is not modified by the operating system
in case of an error other than EAGAIN or EINTR.
The man page leaves this unspecified on FreeBSD, DragonFly and
Darwin, so better check the error code which returns a valid
value in `len` explicitly (only EAGAIN and EINTR).
This fixes the test case for sendfile on DragonFly.
PR-URL: https://github.com/libuv/libuv/pull/466
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
Diffstat (limited to 'docs/src')
0 files changed, 0 insertions, 0 deletions