[前][次][番号順一覧][スレッド一覧]

ruby-changes:40085

From: kosaki <ko1@a...>
Date: Sun, 18 Oct 2015 10:44:36 +0900 (JST)
Subject: [ruby-changes:40085] kosaki:r52166 (trunk): * ruby.c (open_load_file): add a comment.

kosaki	2015-10-18 10:44:31 +0900 (Sun, 18 Oct 2015)

  New Revision: 52166

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=52166

  Log:
    * ruby.c (open_load_file): add a comment.

  Modified files:
    trunk/ChangeLog
    trunk/ruby.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 52165)
+++ ChangeLog	(revision 52166)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Sun Oct 18 10:42:19 2015  KOSAKI Motohiro  <kosaki.motohiro@g...>
+
+	* ruby.c (open_load_file): add a comment.
+
 Sun Oct 18 10:12:46 2015  KOSAKI Motohiro  <kosaki.motohiro@g...>
 
 	* file.c (rb_file_identical_p): simplify ifdefs
Index: ruby.c
===================================================================
--- ruby.c	(revision 52165)
+++ ruby.c	(revision 52166)
@@ -1778,6 +1778,10 @@ open_load_file(VALUE fname_v, int *xflag https://github.com/ruby/ruby/blob/trunk/ruby.c#L1778
 		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);
 	    }
 	}

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]