summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
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 0c5b148020..90e3e4d640 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: