aboutsummaryrefslogtreecommitdiffstats
path: root/ruby.c
diff options
context:
space:
mode:
authorkosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-10-18 01:44:31 +0000
committerkosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-10-18 01:44:31 +0000
commita923a6f04c779e85787cfee6207ed8b0ae0e4070 (patch)
tree67785662025529bf491e08019468ec86e760f1e5 /ruby.c
parent395dd7867e62fde1aada773adad00cd07397c5de (diff)
downloadruby-a923a6f04c779e85787cfee6207ed8b0ae0e4070.tar.gz
* ruby.c (open_load_file): add a comment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52166 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ruby.c')
-rw-r--r--ruby.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ruby.c b/ruby.c
index 5c17f409c8..b0fee645c3 100644
--- a/ruby.c
+++ b/ruby.c
@@ -1778,6 +1778,10 @@ open_load_file(VALUE fname_v, int *xflag)
rb_load_fail(fname_v, strerror(e));
}
if (S_ISFIFO(st.st_mode)) {
+ /*
+ We need to wait if FIFO is empty. It's FIFO's semantics.
+ rb_thread_wait_fd() release GVL. So, it's safe.
+ */
rb_thread_wait_fd(fd);
}
}