libuv/src
Michael Neumann 8b90faff6c 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>
2015-09-01 09:22:43 +02:00
..
unix fs: fix bug in sendfile for DragonFly 2015-09-01 09:22:43 +02:00
win win, tty: do not convert \r to \r\n 2015-08-31 10:07:40 +02:00
fs-poll.c core: add ability to customize memory allocator 2015-06-02 12:05:20 +02:00
heap-inl.h heap: fix heap_remove() 2014-05-23 20:04:42 +04:00
inet.c unix, windows: fix parsing scoped IPv6 addresses 2014-05-25 23:30:46 +02:00
queue.h common: use offsetof for QUEUE_DATA 2015-07-03 11:38:24 +02:00
threadpool.c threadpool: fix thread starvation bug 2015-08-26 19:53:09 +02:00
uv-common.c common: fix use of snprintf on Windows 2015-08-19 11:40:16 +02:00
uv-common.h win,stream: add slot to remember CRT fd 2015-06-14 16:22:17 -07:00
version.c core: add UV_VERSION_HEX macro 2015-06-29 23:08:41 +02:00