提交 9e41ee7b 编写于 作者: Y y-yagi 提交者: yuuji.yaginuma

Merge pull request #37114 from iainbeeston/patch-1

Don't use Process#clock_gettime CLOCK_PROCESS_CPUTIME_ID on Solaris
上级 47c1c941
* Don't use `Process#clock_gettime(CLOCK_PROCESS_CPUTIME_ID)` on Solaris
*Iain Beeston*
## Rails 6.0.0 (August 16, 2019) ##
* Let `require_dependency` in `zeitwerk` mode look the autoload paths up for
......
......@@ -57,7 +57,8 @@ class Event
def self.clock_gettime_supported? # :nodoc:
defined?(Process::CLOCK_PROCESS_CPUTIME_ID) &&
!Gem.win_platform?
!Gem.win_platform? &&
!RUBY_PLATFORM.match?(/solaris/i)
end
private_class_method :clock_gettime_supported?
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册