1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/test/-ext-
Koichi Sasada 5c2b644166 fix random EBADF problem
```ruby
      r, w = IO.pipe
      r.close

      IO.for_fd(w.fileno).close
```

This code closes a file descriptor `w.fileno`, but `w` doesn't know
the closing. Another code can open same file descriptor with opening
file (`f`). After that, the `w` will GCed and `w.fileno` is closed
again, and `f.fileno` is closed too, so IO operations for `f` (`f.close`)
will cause EBADF.

To fix this issue, do this test in another process.
2021-10-26 11:39:52 +09:00
..
arith_seq
array Guard array when appending 2021-09-01 10:58:20 -07:00
bignum
bug_reporter Show +YJIT in version string and RUBY_DESCRIPTION 2021-10-20 18:19:43 -04:00
class
debug
exception
file
float Use Test::Unit::AssertionFailedError instead of MiniTest::Assertion for test-unit migration 2021-09-06 18:34:15 +09:00
funcall
gvl
hash
integer
iseq_load
iter
load
marshal
method
num2int
path_to_class
popen_deadlock
postponed_job
proc
rational
st
string [Feature #18239] Implement VWA for strings 2021-10-25 13:26:23 -04:00
struct
symbol
thread_fd Renamed thraed_fd_close as thread_fd 2021-07-29 21:15:04 +09:00
time
tracepoint
typeddata
vm
wait fix random EBADF problem 2021-10-26 11:39:52 +09:00
win32
test_bug-3571.rb
test_bug-5832.rb
test_bug-14834.rb
test_enumerator_kw.rb
test_notimplement.rb
test_printf.rb Escape unprintable chars only, without surrounding quotes 2021-07-24 14:31:41 +09:00
test_random.rb
test_recursion.rb
test_scan_args.rb