ruby-changes:49295
From: glass <ko1@a...>
Date: Fri, 22 Dec 2017 17:47:44 +0900 (JST)
Subject: [ruby-changes:49295] glass:r61412 (trunk): io.c: ignore EPERM
glass 2017-12-22 17:47:39 +0900 (Fri, 22 Dec 2017) New Revision: 61412 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=61412 Log: io.c: ignore EPERM * io.c (nogvl_copy_file_range): ignore EPERM and fallback to sendfile(2) or read/write. copy_file_range(2) may not exist even if __NR_copy_file_range is defined in the build environment. [Bug #14207] Modified files: trunk/io.c Index: io.c =================================================================== --- io.c (revision 61411) +++ io.c (revision 61412) @@ -10783,6 +10783,8 @@ nogvl_copy_file_range(struct copy_stream https://github.com/ruby/ruby/blob/trunk/io.c#L10783 } switch (errno) { case EINVAL: + case EPERM: /* copy_file_range(2) doesn't exist (may happen in + docker container) */ #ifdef ENOSYS case ENOSYS: #endif -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/