--- !ruby/object:RI::MethodDescription
aliases: []
block_params:
comment:
- !ruby/struct:SM::Flow::P
body: Gets the resource limit of the process. cur_limit means current (soft) limit and max_limit means maximum (hard) limit.
- !ruby/struct:SM::Flow::P
body: "resource indicates the kind of resource to limit: such as Process::RLIMIT_CORE, Process::RLIMIT_CPU, etc. See Process.setrlimit for details."
- !ruby/struct:SM::Flow::P
body: cur_limit and max_limit may be Process::RLIM_INFINITY, Process::RLIM_SAVED_MAX or Process::RLIM_SAVED_CUR. See Process.setrlimit and the system getrlimit(2) manual for details.
full_name: Process::getrlimit
is_singleton: true
name: getrlimit
params: |
Process.getrlimit(resource) => [cur_limit, max_limit]
visibility: public