From: Tanaka Akira Date: 2010-09-12T00:29:52+09:00 Subject: [ruby-core:32324] Re: [Ruby 1.9-Bug#3813][Open] Add Missing RLIMIT_ Constants to Process [Patch] 2010/9/10 Run Paint Run Run : > Bug #3813: Add Missing RLIMIT_ Constants to Process [Patch] > http://redmine.ruby-lang.org/issues/show/3813 > > Author: Run Paint Run Run > Status: Open, Priority: Low > Category: core > ruby -v: ruby 1.9.3dev (2010-09-10 trunk 29207) [i686-linux] > > This patch adds the five missing RLIMIT_* constants to Process. As of Linux 2.6.32, `man 2 getrlimit` defines 16 RLIMIT_* constants. 1 of those is obsolete. With this patch, Process knows these 15 plus the FreeBSD-specific RLIMIT_SBSIZE. My kernel isn't configured for RLIMIT_RTTIME, but the following shows that the remaining 14 work: Your patch is not enough for supporting the limits. rlimit_resource_name2int and the document of Process.setrlimit should be updated as well. -- Tanaka Akira