# \[Ruby 1.9 - Bug #356\] (Open) test\_flush(TestIONonblock): Errno::EBADF: Bad file descriptor

**URL:** <https://www.ruby-forum.com/t/ruby-1-9-bug-356-open-test-flush-testiononblock-errno-bad-file-descriptor/143874>\
**Category:** Development\
**Created:** [July 23, 2008, 1:14pm UTC](https://www.ruby-forum.com/t/ruby-1-9-bug-356-open-test-flush-testiononblock-errno-bad-file-descriptor/143874 "2008-07-23T13:14:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kazuhiro\_NISHIYAMA](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/77aa72/32.png) [@Kazuhiro\_NISHIYAMA](https://www.ruby-forum.com/u/Kazuhiro_NISHIYAMA)\
**Post date:** [July 23, 2008, 1:14pm UTC](https://www.ruby-forum.com/t/ruby-1-9-bug-356-open-test-flush-testiononblock-errno-bad-file-descriptor/143874/1 "2008-07-23T13:14:52Z")

</div>

e$B%A%1%C%He(B #356 e$B$,Js9p$5$l$^$7$?!#e(B (by Kazuhiro NISHIYAMA)

* * *

Bug #356: test\_flush(TestIONonblock): Errno::EBADF: Bad file descriptor  
[http://redmine.ruby-lang.org/issues/show/356](http://redmine.ruby-lang.org/issues/show/356)

e$B5/I\<\<Te(B: Kazuhiro NISHIYAMA  
e$B%9%F!\<%?%9e(B: Open  
e$BM%@hEYe(B: Normal  
e$BC4Ev\<Te(B:  
e$B%+%F%4%je(B: ext  
Target version:

Ubuntu  
8.04.1e$B$N4D6-$Ge(Btest\_flush(TestIONonblock)e$B$,e(BErrno::EBADFe$B$K$J$j$^$9!#e(B  
Debiane$B$J$I$NB\>$N4D6-$G$Oe(B(e$B;n$7$?HO0OFb$G$Oe(B)e$B:F8=$7$^$;$s$G$7$?!#e(B

% ruby-trunk -v test/io/nonblock/test\_flush.rb  
ruby 1.9.0 (2008-07-23 revision 18181) [i686-linux]  
Loaded suite test/io/nonblock/test\_flush  
Started  
E  
Finished in 0.001041173 seconds.

1. Error:  
test\_flush(TestIONonblock):  
Errno::EBADF: Bad file descriptor  
test/io/nonblock/test\_flush.rb:27:in `flush' test/io/nonblock/test_flush.rb:27:in `block in test\_flush’  
/home/kazu/opt/ruby-trunk/lib/ruby/1.9.0/timeout.rb:52:in `timeout' /home/kazu/opt/ruby-trunk/lib/ruby/1.9.0/timeout.rb:82:in `timeout’  
test/io/nonblock/test\_flush.rb:17:in `test\_flush’

1 tests, 0 assertions, 0 failures, 1 errors  
% lsb\_release -a  
No LSB modules are available.  
Distributor ID: Ubuntu  
Description: Ubuntu 8.04.1  
Release: 8.04  
Codename: hardy  
%

---

<div class="post-metadata">

**Author:** ![Kazuhiro\_NISHIYAMA](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/77aa72/32.png) [@Kazuhiro\_NISHIYAMA](https://www.ruby-forum.com/u/Kazuhiro_NISHIYAMA)\
**Post date:** [August 5, 2008, 11:07am UTC](https://www.ruby-forum.com/t/ruby-1-9-bug-356-open-test-flush-testiononblock-errno-bad-file-descriptor/143874/2 "2008-08-05T11:07:42Z")

</div>

e$B%A%1%C%He(B #356 e$B$,99?7$5$l$^$7$?!#e(B (by Anonymous)

e$B%9%F!\<%?%9e(B Opene$B$+$ie(BClosede$B$KJQ99e(B  
e$B?JD=e(B % 0e$B$+$ie(B100e$B$KJQ99e(B

## Applied in changeset r18372.

[http://redmine.ruby-lang.org/issues/show/356](http://redmine.ruby-lang.org/issues/show/356)
