diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-02-06 11:36:23 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-02-06 11:36:23 +0000 |
commit | fb128ef26f66f48612c962a853b1fa211ccf8bc6 (patch) | |
tree | c175644f755c60352e2f7625294d45d9fb1ba24c /test/ruby/test_process.rb | |
parent | 48823bbd0190be3f3e5df66bfb17e4c80320e8ae (diff) |
no need to restore rlimit in child process.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22090 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_process.rb')
-rw-r--r-- | test/ruby/test_process.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/test/ruby/test_process.rb b/test/ruby/test_process.rb index 436ddd640a..23cb4e6112 100644 --- a/test/ruby/test_process.rb +++ b/test/ruby/test_process.rb @@ -58,10 +58,9 @@ class TestProcess < Test::Unit::TestCase return unless rlimit_exist? with_tmpchdir { write_file 's', <<-"End" - cur_nofile, max_nofile = Process.getrlimit(Process::RLIMIT_NOFILE) result = 1 begin - Process.setrlimit(Process::RLIMIT_NOFILE, 0, max_nofile) + Process.setrlimit(Process::RLIMIT_NOFILE, 0) rescue Errno::EINVAL result = 0 end @@ -72,7 +71,6 @@ class TestProcess < Test::Unit::TestCase result = 0 end end - Process.setrlimit(Process::RLIMIT_NOFILE, cur_nofile, max_nofile) exit result End pid = spawn RUBY, "s" |