зеркало из https://github.com/github/ruby.git
increase additional nfiles
On recent my environment, it must be more than 11. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52760 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
778f32a153
Коммит
81ece7f0a1
|
@ -3081,7 +3081,7 @@ End
|
||||||
|
|
||||||
# try to raise RLIM_NOFILE to >FD_SETSIZE
|
# try to raise RLIM_NOFILE to >FD_SETSIZE
|
||||||
begin
|
begin
|
||||||
Process.setrlimit(Process::RLIMIT_NOFILE, fd_setsize+10)
|
Process.setrlimit(Process::RLIMIT_NOFILE, fd_setsize+20)
|
||||||
rescue Errno::EPERM
|
rescue Errno::EPERM
|
||||||
exit 0
|
exit 0
|
||||||
end
|
end
|
||||||
|
|
Загрузка…
Ссылка в новой задаче