Advertisement
techno-

Untitled

Jan 13th, 2023
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.23 KB | None | 0 0
  1. main(int argc, char * argv[])
  2. {
  3.    int i=0;
  4.    pid_t pid;
  5.  
  6.    i++;
  7.    printf ("i vale %d \n",i);
  8.    if ((pid=fork())!=0)
  9.        exit(0);
  10.    sleep (1);
  11.    if (i==MAX)
  12.         exit(0);
  13.    execl("./a.out", "./a.out", NULL);
  14.    i
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement