Actions
Feature #11806
closed[PATCH] IO#advise should not raise Errno::ENOSYS
Feature #11806:
[PATCH] IO#advise should not raise Errno::ENOSYS
Description
As it is just a hint the kernel is free to ignore,
IO#advise already succeeds when posix_fadvise is not
available build time at all. Following that, if posix_fadvise
was available at build time but not implemented in the running
kernel, we should also ignore it.
- io.c (do_io_advise): do not raise on ENOSYS
- test/ruby/test_io.rb (test_advise): do not skip on Errno::ENOSYS
(test_advise_pipe): ditto
Files
Actions