Issue #3813 has been updated by Run Paint Run Run.

File rlimit-constants-2.patch added

> Your patch is not enough for supporting the limits.

> rlimit_resource_name2int and the document of Process.setrlimit should b=
e
> updated as well.

Apologies. Updated patch attached.
----------------------------------------
http://redmine.ruby-lang.org/issues/show/3813

----------------------------------------
http://redmine.ruby-lang.org
ZGlmZiAtLWdpdCBhL3Byb2Nlc3MuYyBiL3Byb2Nlc3MuYwppbmRleCA4NWQy
YWViLi5hZDg4NGVhIDEwMDY0NAotLS0gYS9wcm9jZXNzLmMKKysrIGIvcHJv
Y2Vzcy5jCkBAIC0zNjIwLDYgKzM2MjAsOSBAQCBybGltaXRfcmVzb3VyY2Vf
bmFtZTJpbnQoY29uc3QgY2hhciAqbmFtZSwgaW50IGNhc2V0eXBlKQogI2lm
ZGVmIFJMSU1JVF9NRU1MT0NLCiAgICAgICAgIFJFU0NIRUNLKE1FTUxPQ0sp
OwogI2VuZGlmCisjaWZkZWYgUkxJTUlUX01TR1FVRVVFCisgICAgICAgIFJF
U0NIRUNLKE1TR1FVRVVFKTsKKyNlbmRpZgogICAgICAgICBicmVhazsKIAog
ICAgICAgY2FzZSAnTic6CkBAIC0zNjI5LDEyICszNjMyLDIxIEBAIHJsaW1p
dF9yZXNvdXJjZV9uYW1lMmludChjb25zdCBjaGFyICpuYW1lLCBpbnQgY2Fz
ZXR5cGUpCiAjaWZkZWYgUkxJTUlUX05QUk9DCiAgICAgICAgIFJFU0NIRUNL
KE5QUk9DKTsKICNlbmRpZgorI2lmZGVmIFJMSU1JVF9OSUNFCisgICAgICAg
IFJFU0NIRUNLKE5JQ0UpOworI2VuZGlmCiAgICAgICAgIGJyZWFrOwogCiAg
ICAgICBjYXNlICdSJzoKICNpZmRlZiBSTElNSVRfUlNTCiAgICAgICAgIFJF
U0NIRUNLKFJTUyk7CiAjZW5kaWYKKyNpZmRlZiBSTElNSVRfUlRQUklPCisg
ICAgICAgIFJFU0NIRUNLKFJUUFJJTyk7CisjZW5kaWYKKyNpZmRlZiBST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