Unverified Commit 51c0e396 authored by Nils Goroll's avatar Nils Goroll

splicer fallback also for unknown errnos

parent e42437c8
......@@ -318,8 +318,11 @@ splicer(void *a)
do {
r = splice(fds[0], NULL, fds[1], NULL, SIZE_MAX,
SPLICE_F_MORE | SPLICE_F_MOVE);
if (r == -1 && errno == EINVAL)
if (r == -1) {
if (errno != EINVAL)
perror("splicer unexpected error");
return (splicer_fallback(fds));
}
assert(r >= 0);
} while (r != 0);
......
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