Guest User

Untitled

a guest
Nov 20th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. #include <stdlib.h>
  2. #include <sys/resource.h>
  3.  
  4. int main() {
  5. struct rlimit limit;
  6. limit.rlim_cur = 4096;
  7. limit.rlim_max = 4096;
  8.  
  9. int ret;
  10. ret = prlimit(18048, RLIMIT_NOFILE, &limit, NULL);
  11. return ret;
  12. }
Add Comment
Please, Sign In to add comment