10 int child_rt_status
= 0;
12 printf("[%d] Je suis le lanceur\n", getpid());
13 printf("[%d] Je lance la balle\n", getpid());
17 perror("fork failure\n");
22 execl("/home/fraggle/src/TD_IML-git/TD1/part_three/balle/balle", "balle", (char*)NULL
);
23 perror("execl failure\n");
26 wait(&child_rt_status
);
27 printf("[%d] La balle est arrivee apres %d secondes\n", getpid(), WEXITSTATUS(child_rt_status
));