BUT2/SCR/controle/devoir39/cntr_r3.05/Ex1/gdf1.c
2023-10-23 13:23:36 +02:00

17 lines
263 B
C

#include <sys/types.h>
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
int main(){
int i;
int x1, x2;
for (i=0; i<3; i++){
x1 = fork();
if (i<2 && x1==0){
x2 = fork();
}
}
return EXIT_SUCCESS;
}