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

ruby-changes:19805

From: yugui <ko1@a...>
Date: Tue, 31 May 2011 11:28:48 +0900 (JST)
Subject: [ruby-changes:19805] yugui:r31850 (ruby_1_9_2): merges r30364 from trunk into ruby_1_9_2. Fixes #4377.

yugui	2011-05-31 11:28:35 +0900 (Tue, 31 May 2011)

  New Revision: 31850

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

  Log:
    merges r30364 from trunk into ruby_1_9_2. Fixes #4377.
    --
        * io.c (pipe_open): Added rb_thread_atfork(). We must reinitialize
          GVL at new process creation.

  Modified files:
    branches/ruby_1_9_2/ChangeLog
    branches/ruby_1_9_2/io.c
    branches/ruby_1_9_2/version.h

Index: ruby_1_9_2/ChangeLog
===================================================================
--- ruby_1_9_2/ChangeLog	(revision 31849)
+++ ruby_1_9_2/ChangeLog	(revision 31850)
@@ -1,3 +1,8 @@
+Sat Dec 25 20:01:40 2010  KOSAKI Motohiro  <kosaki.motohiro@g...>
+
+	* io.c (pipe_open): Added rb_thread_atfork(). We must reinitialize
+	  GVL at new process creation.
+
 Sat Feb  5 10:09:31 2011  Nobuyoshi Nakada  <nobu@r...>
 
 	* load.c (rb_get_expanded_load_path): always expand load paths.
Index: ruby_1_9_2/io.c
===================================================================
--- ruby_1_9_2/io.c	(revision 31849)
+++ ruby_1_9_2/io.c	(revision 31850)
@@ -5018,6 +5018,7 @@
 	fflush(stdin);		/* is it really needed? */
 	pid = rb_fork(&status, 0, 0, Qnil);
 	if (pid == 0) {		/* child */
+	    rb_thread_atfork();
 	    popen_redirect(&arg);
 	    rb_io_synchronized(RFILE(orig_stdout)->fptr);
 	    rb_io_synchronized(RFILE(orig_stderr)->fptr);
Index: ruby_1_9_2/version.h
===================================================================
--- ruby_1_9_2/version.h	(revision 31849)
+++ ruby_1_9_2/version.h	(revision 31850)
@@ -1,5 +1,5 @@
 #define RUBY_VERSION "1.9.2"
-#define RUBY_PATCHLEVEL 265
+#define RUBY_PATCHLEVEL 266
 #define RUBY_VERSION_MAJOR 1
 #define RUBY_VERSION_MINOR 9
 #define RUBY_VERSION_TEENY 1

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

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