diff options
author | kosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-10-18 01:44:31 +0000 |
---|---|---|
committer | kosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-10-18 01:44:31 +0000 |
commit | 9ba77de30ffb01299b13f13acdfadca088251962 (patch) | |
tree | 67785662025529bf491e08019468ec86e760f1e5 /ruby.c | |
parent | 701b47740c7a2662d3d41d7107aaa0e638c597aa (diff) | |
download | ruby-9ba77de30ffb01299b13f13acdfadca088251962.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.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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); } } |