Commit | Line | Data |
---|---|---|
1 | #include <sys/types.h> | |
2 | #include <sys/wait.h> | |
3 | ||
4 | #include <stdio.h> | |
5 | #include <stdlib.h> | |
6 | #include <string.h> | |
7 | #include <unistd.h> | |
8 | ||
9 | int main() { | |
10 | ||
11 | printf("[%d] Je suis le lanceur\n", getpid()); | |
12 | printf("[%d] Je lance la balle\n", getpid()); | |
13 | ||
14 | execl("/Users/fraggle/src/TD_IML-git/TD1/part_three/balle/balle", "balle"); | |
15 | ||
16 | return EXIT_SUCCESS; | |
17 | } |