mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
test/ruby/test_io.rb: relax RLIMIT_NPROC for invocation of ruby
This limit seems to be too restrict. It sometimes produces the following warning when running `make test-all`: ``` TestIO#test_close_on_exec<main>: warning: pthread_create failed for timer: Resource temporarily unavailable, scheduling broken ``` git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61598 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
0947c2ba63
commit
0f806b4942
1 changed files with 1 additions and 1 deletions
|
@ -1195,7 +1195,7 @@ class TestIO < Test::Unit::TestCase
|
|||
opts = {}
|
||||
if defined?(Process::RLIMIT_NPROC)
|
||||
lim = Process.getrlimit(Process::RLIMIT_NPROC)[1]
|
||||
opts[:rlimit_nproc] = [lim, 1024].min
|
||||
opts[:rlimit_nproc] = [lim, 2048].min
|
||||
end
|
||||
f = IO.popen([ruby] + args, 'r+', opts)
|
||||
pid = f.pid
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue