17 lines
263 B
C
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;
|
||
|
}
|