Advertisement
Guest User

Untitled

a guest
Nov 14th, 2011
18
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.17 KB | None | 0 0
  1. int main() {
  2.     struct rlimit max;
  3.     max.rlim_cur = 1000;
  4.     max.rlim_max = 1000;
  5.     setrlimit(RLIMIT_NPROC, &max);
  6.     while(1) {
  7.         int i = fork();
  8.         printf("%d\n", i);
  9.     }
  10. }
  11.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement