Current section
Files
Jump to
Current section
Files
edoc/getrlimit-3.edoc
@doc getrlimit(2): retrieve the resource limits for a process
Returns a record:
```
-include_lib("alcove/include/alcove.hrl").
#alcove_rlimit{
cur = integer(),
max = integer()
}
'''
== Examples ==
```
1> {ok, Drv} = alcove_drv:start().
{ok,<0.177.0>}
2> rr(alcove).
[alcove_jail,alcove_pid,alcove_rlimit,alcove_timeval]
3> alcove:getrlimit(Drv, [], rlimit_nofile).
{ok,#alcove_rlimit{cur = 1024,max = 1048576}}
'''