Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdlib.h>
- #include <sys/resource.h>
- int main() {
- struct rlimit limit;
- limit.rlim_cur = 4096;
- limit.rlim_max = 4096;
- int ret;
- ret = prlimit(18048, RLIMIT_NOFILE, &limit, NULL);
- return ret;
- }
Add Comment
Please, Sign In to add comment