October 2018
Beginner
794 pages
19h 23m
English
Querying and/or setting resource limits programmatically can be achieved with the following APIs—the system calls:
Of these, we will only focus on prlimit(2); [get|set]rlimit(2) is an older interface, has quite a few issues (bugs), and is generally considered outdated.
Let's get back to the prlimit(2) system call API:
#include <sys/time.h>#include <sys/resource.h>int prlimit(pid_t pid, int resource, const struct rlimit *new_limit, struct rlimit ...
Read now
Unlock full access