diff options
author | ocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-09-17 02:42:59 +0000 |
---|---|---|
committer | ocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-09-17 02:42:59 +0000 |
commit | 453e7e1c3fff0bb3a1044857f4e1f33aa3035f54 (patch) | |
tree | 033393758050e8f54f1a965f566f7c3157cafd9d /test/ruby/test_exception.rb | |
parent | 0ac141513715e39c4a1eaf5d1b942462269ffcd2 (diff) | |
download | ruby-453e7e1c3fff0bb3a1044857f4e1f33aa3035f54.tar.gz ruby-453e7e1c3fff0bb3a1044857f4e1f33aa3035f54.tar.xz ruby-453e7e1c3fff0bb3a1044857f4e1f33aa3035f54.zip |
* win32/win32.c (rb_w32_select): select for socket didn't work.
this caused deadlock in drb test. this happened because GetFileType
for socket handle returns FILE_TYPE_PIPE. Of course, it's not a
pipe. So socket handle didn't reach winsock's select function.
* win32/win32.c (rb_w32_select): read for pipe still kept brocking
even if writer handle was closed.
r,w = IO.pipe
Thread.new {
sleep 3; puts "------- 1"
w.puts("foo")
sleep 3; puts "------- 2"
w.puts("boo")
sleep 3; puts "------- 3"
w.close
}
until r.eof? # should break by w.close but didn't.
puts r.gets
end
* win32/win32.c (rb_w32_select): temprary reverted console support
but it'll be back soon.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9192 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_exception.rb')
0 files changed, 0 insertions, 0 deletions