diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-02-20 07:22:57 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-02-20 07:22:57 +0000 |
commit | 4ab39d2202c42d3781e44ad8b8219e6e5bfa39aa (patch) | |
tree | 461ab5a3fa1c62106426cb2c54c11a7b847c2840 /file.c | |
parent | 4f00a27fb5028c7be9fd7c0c6bdebc689b4a703d (diff) | |
download | ruby-4ab39d2202c42d3781e44ad8b8219e6e5bfa39aa.tar.gz |
* 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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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: |