Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- main(int argc, char * argv[])
- {
- int i=0;
- pid_t pid;
- i++;
- printf ("i vale %d \n",i);
- if ((pid=fork())!=0)
- exit(0);
- sleep (1);
- if (i==MAX)
- exit(0);
- execl("./a.out", "./a.out", NULL);
- i
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement