Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int main() {
- struct rlimit max;
- max.rlim_cur = 1000;
- max.rlim_max = 1000;
- setrlimit(RLIMIT_NPROC, &max);
- while(1) {
- int i = fork();
- printf("%d\n", i);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement