double_pipe.c
This commit is contained in:
@@ -22,11 +22,9 @@ int wait_child(int x){
|
||||
if(pid < 0) return -1;
|
||||
|
||||
// Child
|
||||
else if (pid == 0) {
|
||||
|
||||
if (x < 0) exit(-1);
|
||||
else if (pid == 0) {
|
||||
|
||||
exit(fibo(x));
|
||||
exit(fibo(x));
|
||||
}
|
||||
|
||||
// Daddy
|
||||
|
||||
Reference in New Issue
Block a user