From: Eric Wong Date: 2014-01-19T02:10:37+00:00 Subject: [ruby-core:59865] Re: [ruby-trunk - Feature #9427] [PATCH] io.c: remove socket check for sendfile akr@fsij.org wrote: > I'm afraid that this patch cause a problem on non-Linux platfroms. Wouldn't they fail with EINVAL? FreeBSD manpage documents it as such. Otherwise, can we keep the S_ISSOCK check and wrap with: #if !defined(__linux__) ... I changed the S_ISSOCK check to the macro while I was at it since it's more readable (and we define it for compatibility anyways). http://bogomips.org/ruby.git/patch?id=e4746063070539f6d5c7 -- The following changes since commit 971ef822679dfa6ee63ff83a47b4e4d1aa60d146: * ext/socket: Avoid unnecessary ppoll/select on Linux. Patch by Eric Wong. [ruby-core:57950] [Bug #9039] (2014-01-18 14:13:22 +0000) are available in the git repository at: git://80x24.org/ruby.git sendfile-anydest-linux for you to fetch changes up to e4746063070539f6d5c7216893cd2cd620d117d4: io.c: remove socket check for sendfile on Linux (2014-01-19 02:06:46 +0000) ---------------------------------------------------------------- Eric Wong (1): io.c: remove socket check for sendfile on Linux io.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-)