summaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-05-17 04:38:19 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-05-17 04:38:19 +0000
commitc89af9fc53fe324a9c8247a423e6c35f471e1c9d (patch)
tree881e313831cafec35bfc80a3b2f15f1b98426853 /file.c
parentbc9f3cf198ad1d1415e58f2ce8109d84c7cb3c30 (diff)
downloadruby-c89af9fc53fe324a9c8247a423e6c35f471e1c9d.tar.gz
ruby-c89af9fc53fe324a9c8247a423e6c35f471e1c9d.tar.xz
ruby-c89af9fc53fe324a9c8247a423e6c35f471e1c9d.zip
2000-05-17
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@695 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'file.c')
-rw-r--r--file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/file.c b/file.c
index 0c5b14802..90e3e4d64 100644
--- a/file.c
+++ b/file.c
@@ -1468,9 +1468,9 @@ rb_thread_flock(fd, op, fptr)
op |= LOCK_NB;
while (flock(fd, op) < 0) {
switch (errno) {
- case EINTR: /* can be happen? */
+ case EINTR: /* can be happen? */
case EWOULDBLOCK:
- rb_thread_schedule(); /* busy wait */
+ rb_thread_polling(); /* busy wait */
rb_io_check_closed(fptr);
break;
default: