From ca6a8b1e2c9e1832ab993edff48d2d3a9234a4b3 Mon Sep 17 00:00:00 2001 From: ko1 Date: Sun, 31 Aug 2008 07:44:24 +0000 Subject: * 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 --- file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'file.c') diff --git a/file.c b/file.c index 527cd75059..4e6145e0df 100644 --- a/file.c +++ b/file.c @@ -3472,7 +3472,7 @@ rb_file_flock(VALUE obj, VALUE operation) if (fptr->mode & FMODE_WRITABLE) { rb_io_flush(obj); } - while ((int)rb_thread_blocking_region(rb_thread_flock, op, RB_UBF_DFL, 0) < 0) { + while ((int)rb_thread_blocking_region(rb_thread_flock, op, RUBY_UBF_IO, 0) < 0) { switch (errno) { case EAGAIN: case EACCES: -- cgit v1.2.3