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

ruby-changes:40440

From: ngoto <ko1@a...>
Date: Tue, 10 Nov 2015 17:50:12 +0900 (JST)
Subject: [ruby-changes:40440] ngoto:r52521 (trunk): * bootstraptest/test_fork.rb (): :NPROC (RLIMIT_NPROC)

ngoto	2015-11-10 17:50:06 +0900 (Tue, 10 Nov 2015)

  New Revision: 52521

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

  Log:
    * bootstraptest/test_fork.rb ([ruby-dev:37934]): :NPROC (RLIMIT_NPROC)
      is not supported on some platforms (e.g. Solaris 10).

  Modified files:
    trunk/ChangeLog
    trunk/bootstraptest/test_fork.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 52520)
+++ ChangeLog	(revision 52521)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Tue Nov 10 17:32:35 2015  Naohisa Goto  <ngotogenome@g...>
+
+	* bootstraptest/test_fork.rb ([ruby-dev:37934]): :NPROC (RLIMIT_NPROC)
+	  is not supported on some platforms (e.g. Solaris 10).
+
 Tue Nov 10 16:57:14 2015  Nobuyoshi Nakada  <nobu@r...>
 
 	* hash.c (rb_hash_to_proc): new method Hash#to_proc.
Index: bootstraptest/test_fork.rb
===================================================================
--- bootstraptest/test_fork.rb	(revision 52520)
+++ bootstraptest/test_fork.rb	(revision 52521)
@@ -24,7 +24,7 @@ assert_finish 10, %q{ https://github.com/ruby/ruby/blob/trunk/bootstraptest/test_fork.rb#L24
 assert_normal_exit(<<'End', '[ruby-dev:37934]')
   main = Thread.current
   Thread.new { sleep 0.01 until main.stop?; Thread.kill main }
-  Process.setrlimit(:NPROC, 1)
+  Process.setrlimit(:NPROC, 1) if defined?(Process::RLIMIT_NPROC)
   fork {}
 End
 

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

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