diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-31 07:44:24 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-31 07:44:24 +0000 |
commit | ca6a8b1e2c9e1832ab993edff48d2d3a9234a4b3 (patch) | |
tree | 09e15151427ce2b817813bb7bde1f0d9cf1a2c75 /thread.c | |
parent | d427cf3af8dfc1af85e6e0f3a7d8a86dd7f2d35f (diff) | |
download | ruby-ca6a8b1e2c9e1832ab993edff48d2d3a9234a4b3.tar.gz |
* include/ruby/intern.h: rename RB_UBF_DFL to
RUBY_UBF_IO and RUBY_UBF_PROCESS.
Because there is no default (universal) unblocking function.
* ext/socket/socket.c, file.c, io.c, process.c, thread.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18985 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread.c')
-rw-r--r-- | thread.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -931,8 +931,8 @@ rb_thread_blocking_region( VALUE val; rb_thread_t *th = GET_THREAD(); - if (ubf == RB_UBF_DFL) { - ubf = ubf_select; + if (ubf == RUBY_UBF_IO || ubf == RUBY_UBF_PROCESS) { + ubf = ubf_select;n data2 = th; } |