Skip to content

Commit ee1a685

Browse files
committed
merge revision(s) 53227: [Backport ruby#11852]
* test/ruby/test_io.rb: handled rlimit value same as r52277 [Bug ruby#11852][ruby-dev:49446] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@54436 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent 289889a commit ee1a685

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

ChangeLog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
Wed Mar 30 18:45:26 2016 Kimura Wataru <kimuraw@i.nifty.jp>
2+
3+
* test/ruby/test_io.rb: handled rlimit value same as r52277
4+
[Bug #11852][ruby-dev:49446]
5+
16
Tue Mar 29 21:10:10 2016 Kazuki Yamaguchi <k@rhe.jp>
27

38
* ext/openssl/extconf.rb: check SSL_CTX_set_next_proto_select_cb

test/ruby/test_io.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1067,7 +1067,10 @@ def ruby(*args)
10671067
args = ['-e', '$>.write($<.read)'] if args.empty?
10681068
ruby = EnvUtil.rubybin
10691069
opts = {}
1070-
opts[:rlimit_nproc] = 1024 if defined?(Process::RLIMIT_NPROC)
1070+
if defined?(Process::RLIMIT_NPROC)
1071+
lim = Process.getrlimit(Process::RLIMIT_NPROC)[1]
1072+
opts[:rlimit_nproc] = [lim, 1024].min
1073+
end
10711074
f = IO.popen([ruby] + args, 'r+', opts)
10721075
pid = f.pid
10731076
yield(f)

version.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#define RUBY_VERSION "2.1.9"
2-
#define RUBY_RELEASE_DATE "2016-03-29"
3-
#define RUBY_PATCHLEVEL 489
2+
#define RUBY_RELEASE_DATE "2016-03-30"
3+
#define RUBY_PATCHLEVEL 490
44

55
#define RUBY_RELEASE_YEAR 2016
66
#define RUBY_RELEASE_MONTH 3
7-
#define RUBY_RELEASE_DAY 29
7+
#define RUBY_RELEASE_DAY 30
88

99
#include "ruby/version.h"
1010

0 commit comments

Comments
 (0)