U:RDoc::AnyMethod[iI"setrlimit:ETI"Process::setrlimit;TT: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"-Sets the resource limit of the process. ;TI"0_cur_limit_ means current (soft) limit and ;TI",_max_limit_ means maximum (hard) limit.;To:RDoc::Markup::BlankLineo; ; [I"6If _max_limit_ is not given, _cur_limit_ is used.;T@o; ; [ I"9_resource_ indicates the kind of resource to limit. ;TI"7It should be a symbol such as :CORE, ;TI"-a string such as "CORE" or ;TI";a constant such as Process::RLIMIT_CORE. ;TI"/The available resources are OS dependent. ;TI"*Ruby may support following resources.;T@o:RDoc::Markup::List: @type: LABEL: @items[o:RDoc::Markup::ListItem: @label[I"AS;T; [o; ; [I"Utotal available memory (bytes) (SUSv3, NetBSD, FreeBSD, OpenBSD but 4.4BSD-Lite);To;;[I" CORE;T; [o; ; [I"core size (bytes) (SUSv3);To;;[I"CPU;T; [o; ; [I"CPU time (seconds) (SUSv3);To;;[I" DATA;T; [o; ; [I"!data segment (bytes) (SUSv3);To;;[I" FSIZE;T; [o; ; [I"file size (bytes) (SUSv3);To;;[I" MEMLOCK;T; [o; ; [I"8total size for mlock(2) (bytes) (4.4BSD, GNU/Linux);To;;[I" MSGQUEUE;T; [o; ; [I":INFINITY, "INFINITY" or ;TI"*Process::RLIM_INFINITY, ;TI"3which means that the resource is not limited. ;TI"7They may be Process::RLIM_SAVED_MAX, ;TI".Process::RLIM_SAVED_CUR and ;TI",corresponding symbols and strings too. ;TI"0See system setrlimit(2) manual for details.;T@o; ; [I"AThe following example raises the soft limit of core size to ;TI"6the hard limit to try to make core dump possible.;T@o:RDoc::Markup::Verbatim; [I":Process.setrlimit(:CORE, Process.getrlimit(:CORE)[1]);T: @format0: @fileI"process.c;T:0@omit_headings_from_table_of_contents_below0I"€Process.setrlimit(resource, cur_limit, max_limit) -> nil Process.setrlimit(resource, cur_limit) -> nil ;T0[I" (*args);T@šFI" Process;TcRDoc::NormalModule00