ruby-changes:40148
From: naruse <ko1@a...>
Date: Fri, 23 Oct 2015 01:55:29 +0900 (JST)
Subject: [ruby-changes:40148] naruse:r52229 (trunk): Add rlimit_nproc to avoid to create many process [Bug #11613]
naruse 2015-10-23 01:54:55 +0900 (Fri, 23 Oct 2015) New Revision: 52229 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=52229 Log: Add rlimit_nproc to avoid to create many process [Bug #11613] Modified files: trunk/test/ruby/test_process.rb Index: test/ruby/test_process.rb =================================================================== --- test/ruby/test_process.rb (revision 52228) +++ test/ruby/test_process.rb (revision 52229) @@ -1586,7 +1586,7 @@ class TestProcess < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_process.rb#L1586 end def test_aspawn_too_long_path - bug4315 = '[ruby-core:34833]' + bug4315 = '[ruby-core:34833] #7904 [ruby-core:52628] #11613' assert_fail_too_long_path(%w"echo |", bug4315) end @@ -1600,7 +1600,7 @@ class TestProcess < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_process.rb#L1600 assert_raise(*exs, mesg) do begin loop do - Process.spawn(cmds.join(sep), [STDOUT, STDERR]=>File::NULL) + Process.spawn(cmds.join(sep), [STDOUT, STDERR]=>File::NULL, rlimit_nproc: 1) min = [cmds.size, min].max cmds *= 100 end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/