Commit b1355df8 authored by Nehal J Wani's avatar Nehal J Wani
Browse files

Make sendfile_file test conditional

For certain kernel versions, the test fails with OSError: [EINVAL]

According to man(2) sendfile:

In Linux 2.4 and earlier, out_fd could also refer to a regular file; this
possibility went away in the Linux 2.6.x kernel series, but was restored in
Linux 2.6.33

This patch skips the test sendfile_file on kernel versions which fall in the
above range
parent 8549e598
Supports Markdown
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