mirror of
https://github.com/ruby/ruby.git
synced 2025-08-28 15:36:16 +02:00
![]() Possible fix for recent crashes seen on CI.
[BUG] rb_sys_fail_str(<STDIN>) - errno == 0
rb_io_path() calls rb_obj_dup(), which could call initialize_dup in Ruby
and clobber errno before rb_sys_fail_str() gets to read errno. So
save it out first.
(Using separate statements because order of evaluation in function call
list is unspecified, and order is important here.)
|
||
---|---|---|
.. | ||
console | ||
nonblock | ||
wait |