summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-02-20 07:22:57 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-02-20 07:22:57 +0000
commit4ab39d2202c42d3781e44ad8b8219e6e5bfa39aa (patch)
tree461ab5a3fa1c62106426cb2c54c11a7b847c2840 /file.c
parent4f00a27fb5028c7be9fd7c0c6bdebc689b4a703d (diff)
* file.c (rb_file_flock): use rb_thread_io_blocking_region for the
time being. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30921 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'file.c')
-rw-r--r--file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/file.c b/file.c
index 00a2a0c7ee..b743a32fca 100644
--- a/file.c
+++ b/file.c
@@ -4058,7 +4058,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, RUBY_UBF_IO, 0) < 0) {
+ while ((int)rb_thread_io_blocking_region(rb_thread_flock, op, fptr->fd) < 0) {
switch (errno) {
case EAGAIN:
case EACCES: