* 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
This commit is contained in:
parent
395dd7867e
commit
a923a6f04c
@ -1,3 +1,7 @@
|
|||||||
|
Sun Oct 18 10:42:19 2015 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
|
||||||
|
|
||||||
|
* ruby.c (open_load_file): add a comment.
|
||||||
|
|
||||||
Sun Oct 18 10:12:46 2015 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
|
Sun Oct 18 10:12:46 2015 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
|
||||||
|
|
||||||
* file.c (rb_file_identical_p): simplify ifdefs
|
* file.c (rb_file_identical_p): simplify ifdefs
|
||||||
|
4
ruby.c
4
ruby.c
@ -1778,6 +1778,10 @@ open_load_file(VALUE fname_v, int *xflag)
|
|||||||
rb_load_fail(fname_v, strerror(e));
|
rb_load_fail(fname_v, strerror(e));
|
||||||
}
|
}
|
||||||
if (S_ISFIFO(st.st_mode)) {
|
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);
|
rb_thread_wait_fd(fd);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user