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

ruby-changes:18335

From: kosaki <ko1@a...>
Date: Sat, 25 Dec 2010 17:51:00 +0900 (JST)
Subject: [ruby-changes:18335] Ruby:r30358 (trunk): * thread.c (rb_thread_atfork): Add small comment why we need

kosaki	2010-12-25 17:50:53 +0900 (Sat, 25 Dec 2010)

  New Revision: 30358

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

  Log:
    * thread.c (rb_thread_atfork): Add small comment why we need
          reset random seed.

  Modified files:
    trunk/ChangeLog
    trunk/thread.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 30357)
+++ ChangeLog	(revision 30358)
@@ -1,3 +1,8 @@
+Sat Dec 25 18:30:34 2010  KOSAKI Motohiro  <kosaki.motohiro@g...>
+
+	* thread.c (rb_thread_atfork): Add small comment why we need
+	  reset random seed.
+
 Sat Dec 25 17:33:55 2010  Nobuyoshi Nakada  <nobu@r...>
 
 	* test/csv/base.rb (TestCSV.with_diffrent_ofs): give name to
Index: thread.c
===================================================================
--- thread.c	(revision 30357)
+++ thread.c	(revision 30358)
@@ -2800,6 +2800,8 @@
 {
     rb_thread_atfork_internal(terminate_atfork_i);
     GET_THREAD()->join_list_head = 0;
+
+    /* We don't want reproduce CVE-2003-0900. */
     rb_reset_random_seed();
 }
 

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

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